• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 3,244 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0084 秒)

931. box2d引擎报错问题 [ 64%]

...(this._sp.x, this._sp.y); this._sp.parent.addChild(effect); effect.play(0, false); this.owner.removeSelf(); Laya.Pool.recover("flyCat", this.owner) } } createEffect(): Laya.Animation { let ani: Laya.Animation = new Laya.Animation(); ani.loadAnimation("catFly.ani"); ani.on(Laya.Event.COMPLETE, null, ...

来源: Laya_社区 发布时间: 20191019

932. laya.net.URL [ 64%]

...ormat = function(url:String):String{} URL  exportSceneToJson : Boolean = false[static] 兼容微信不支持加载scene后缀场景,设置为true,则会把scene加载替换为jsonURL  path : String[read-only] 地址的文件夹路径(不包括文件名)。URL  rootPath : String[static]...

来源: Laya2.0_api 发布时间: 20190513

933. oppo CanvasRenderingContext2D 并没有实现 drawImage;报错; [ 64%]

...premultiplyAlpha){ (premultiplyAlpha===void 0)&& (premultiplyAlpha=false); var width=source.width; var height=source.height; this._width=width; this._height=height; this._setWarpMode(/*laya.webgl.WebGLContext.TEXTURE_WRAP_S*/0x2802,this._wrapModeU); this._setWarpMode(/*laya.webgl.WebGLContex...

来源: Laya_社区 发布时间: 20190809

934. 内存释放问题 [ 64%]

...aya.Handler.create(this, ProgressPanel.showGameLoadingProgressPanel, null, false)); } /** * 显示一个模块面板 * 需要 资源altlas的名称和面板的类全名 * @static * @param {string[]} resAltlasName * @param {*} classFullName * * @memberof ResourcesModuleManager */ static showModuleAnd...

来源: Laya_社区 发布时间: 20170905

935. 两个问题都关于LayaAir的ios真机 [ 64%]

...ent 对象。 */ protected function onMouse(e:Event):void { if (toggle === false && _selected) return; if(e.type==Event.MOUSE_DOWN){ QuickUtils.addDark(this,true); }else{ QuickUtils.addDark(this,false); } if (e.type === Event.CLICK) { toggle && (selected = !_selected); _clickHandler ...

来源: Laya_社区 发布时间: 20160802

936. laya.d3.math.OrientedBoundBox [ 64%]

...ientedBoundBox  containsSphere(sphere:BoundSphere, ignoreScale:Boolean = false):int 该包围盒是否包含空间中一包围球 OrientedBoundBox  createByBoundBox(box:BoundBox, out:OrientedBoundBox):void[static] 根据AABB包围盒创建一个 OrientedBoundBox 实例。 OrientedBoundBox  cre...

来源: laya_api 发布时间: 20170929

937. lib/arm/liblayaair.so 总是崩溃 [ 64%]

...ad-5336) 08-14 10:57:49.401 3996-3996/? I/NetworkSpeedManagerEx: mIsStop = false 08-14 10:57:49.402 3996-4122/? D/NetworkSpeedManagerEx: doInBackground 08-14 10:57:49.404 3996-3996/? D/NetworkSpeedManagerEx: onPostExecute 08-14 10:57:49.405 3996-3996/? I/NetworkSpeedManagerEx:  value = 3251.0 08-14...

来源: Laya_社区 发布时间: 20180814

938. 2D物理-碰撞事件与传感器 [ 64%]

... let index = bodyB.getBody().GetUserData().pointer; this.touching[index] = false; } } dispose() { Laya.physicsTimer.clearAll(this); } } new Physics_Physics_CollisionEvent();package { import laya.display.Sprite; import laya.display.Stage; import laya.events.Event; import laya.physics.CircleCollider; ...

来源: Laya2.0_示例 发布时间: 20251209

939. 如何启用摇一摇 [ 64%]

...eMotionEvent){window.addEventListener("devicemotion", deviceMotionHandler, false)'); __JS__('}else{alert("你的设备不支持DeviceMotion事件");}'); __JS__('function deviceMotionHandler(eventData){var acceleration = eventData.accelerationIncludingGravity'); __JS__('var curTime = new Date().getTi...

来源: Laya_社区 发布时间: 20160110

940. laya.events.EventDispatcher_API3.0 [ 64%]

...类型是否有侦听者,如果有侦听者则值为 true,否则值为 false。 hasListener hasListener(type: string): boolean Defined in laya/events/EventDispatcher.ts:21 检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 Parameters type: string 事件的类型...

来源: Laya3.0_api 发布时间: 20231115