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

大约有 1,144 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0054 秒)

911. laya的摇一摇发布到微信小游戏上无效 [ 55%]

...戏上无效 Shake.instance.start(5, 500); Shake.instance.on(Event.CHANGE, this, onShake); private function onShake():void { console.log("摇晃了!!!!"); }这段代码发布到微信小游戏上并无效果 请问是什么原因呢 2018-07-26 添加评论 免费帖 --> 分享 微博 QZONE ...

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

912. laya.d3.core.BaseCamera_API3.0 [ 55%]

...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void clone clone(): Node Inherited from RenderableSprite3D.clone Defined in laya/d3/core/Sprite3D.ts:300 克隆。 Returns Node 克隆副本。 contains contains(n...

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

913. laya.d3.core.light.SpotLight_API3.0 [ 55%]

...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void clone clone(): Node Inherited from RenderableSprite3D.clone Defined in laya/d3/core/Sprite3D.ts:300 克隆。 Returns Node 克隆副本。 contains contains(n...

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

914. 对象池的使用 [ 55%]

...am", Image); nan.skin = url; nan.x = Math.random() * 600 + 80; nan.y =-60; this.addChild(nan); } private function delRen():void { if(arr.length){ for (var i:uint = 0; i < arr.length; i++ ){ if (arr[i].y > 800){ Pool.recover("nan", Image); } }arr[i].visible = false ; }; } 2017-12-26 添加评...

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

915. laya.display.Node [ 55%]

...。功能同Laya.timer.clearTimer()。 Parameters caller:* — 执行域(this)。  method:Function — 结束时的回调方法。 contains()method  public function contains(node:Node):Boolean 当前容器是否包含指定的 Node 节点对象 。 Parameters node:Node — 指定的 Node 节点对...

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

916. MovieClip加载错误抛什么事件? [ 55%]

...age.bgColor = "#000000"; var s:MovieClip = new MovieClip; s.on(Event.ERROR,this,ddddd); s.load("D:/thisisnothing.swf"); } private function ddddd(e:* = null){ trace("dddd"); } } 附件 : --> 2017-01-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

917. 场景管理 · LayaAir3.0文档 · LAYABOX [ 55%]

...gt; { Scene.showLoadingPage(); return Scene.load(url, Handler.create(null, this._onSceneLoaded, [closeOther, complete, param]), progress); } (图2-1) 例如创建名为 OpenScene 的场景,保存在assets路径下 uiDemo/page/OpenScene.ls,代码中可以这样打开场景,同时不关闭...

来源: Laya3.0_文档 发布时间: 20230717

918. 加载解析ByteArray问题 [ 55%]

...载解析: var loader:Loader = new Loader(); loader.on(Event.COMPLETE, this, loadEnd); loader.load("atlas/byarr.byte",Loader.BUFFER); private function loadEnd(data:*):void { if (data is ArrayBuffer) { var byts:Byte = new Byte(data); byts.pos = 0; var fr:int = byts.getByte(); var a:int = byts.getIn...

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

919. laya.d3.core.RenderableSprite3D_API3.0 [ 55%]

...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void clone clone(): Node Inherited from RenderableSprite3D.clone Defined in laya/d3/core/Sprite3D.ts:300 克隆。 Returns Node 克隆副本。 contains contains(n...

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

920. 移动端横竖屏适配(类似锁屏效果)? [ 55%]

...当舞台发生改变时触发横竖屏设置 Laya.stage.on(Event.RESIZE,this,onResize); } private function onResize():void { //横屏显示调整 if(Browser.width>Browser.height) { fillWidth=Browser.width; fillHeight=Browser.height; } //竖屏显示向横屏调整 else { fillWidth=Browser.height...

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