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

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

721. swf在layaairts里播放的问题,播放不了,swf在群文件star.swf [ 45%]

...r.load([{"url":"res/swf/star.swf","type":Laya.Loader.BUFFER}],Laya.Handler.create(this,this.onloadswf)); let loader:Laya.Loader = new Laya.Loader(); let context:Laya.Context = new Laya.Context();         } private onloadswf():void { // console.log("ssss"); // let mc:Laya.MovieClip = Laya.loa...

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

722. Cannot read property 'rayCast' of undefined [ 44%]

...ad("res/scene/LayaScene_webgl_sky/Conventional/webgl_sky.lh", Laya.Handler.create(this, this.onLoadFinish)); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); } onLoadFinish(layaMonkey){ this.layaMonkey=this.scene.addChild(layaMonkey); // Laya.timer.frameLoop(1, this, this.onFrameLoop); } ...

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

723. 在模型有刚体的情况下,怎么才能让模型只围绕一个轴进行旋转 [ 44%]

...prite3D.load("h5/LayaScene_car/Conventional/car.lh",Laya.Handler.create(this,(sp:Laya.Sprite3D)=> { this.car = sp.getChildAt(0).getChildAt(0) as Laya.Sprite3D; this.scene.addChild(this.car); this.rig = (this.car.getComponent(Laya.Rigidbody3D) as Laya.Rigidbody3D) })); 源 • 2019-01-11...

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

724. iOS真机运行报错--- 加载游戏失败,可能由于您的网络不稳定,请退出重进 [ 44%]

...eSweeper6[7091:2932001] Download [ ]:http://stand.alone.version/index.html Creating context 1024, 768, 22018-03-15 11:24:58.270942+0800 MineSweeper6[7091:2932001] curl_easy_perform failed, code=6 src=http://stand.alone.version/index.html 2018-03-15 11:24:58.271059+0800 MineSweeper6[7091:2932001] Dow...

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

725. radioGroup设置labels后,每个radio的icon皮肤无法显示了 [ 44%]

...件: Laya.loader.load("res/atlas/template/QuestionDialog.atlas", Handler.create(null)); 对应的场景代码里: var dialog = new QuestionDialogUI();          Laya.stage.addChild(dialog);          dialog.popup();          dialog.btn_question_dialog_next.on(Laya.Event.CLI...

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

726. 怎么对graphics画出来的图片进行鼠标点击拖动??? [ 44%]

... //这里是我注释掉的代码 //Laya.loader.load(this.ApePath, Handler.create(this, this.setup)); this.setup(); } private setup(): void { this.createApe(); this.showDragRegion(); } private createApe(): void { this.ape = new Sprite(); //this.ape.loadImage(this.ApePath); Laya.stage.addChild(this.a...

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

727. 【简单跑酷--JS版】---Lv.4 添加玩家 [ 44%]

....ATLAS }); //加载图集资源 Laya.loader.load(asset, laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); 嗯 加载改好了 我们先来测试一下 图片是否能拿到 我们在onLoaded方法里面 写一点测试代码 如下   function onLoa...

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

728. webgl 下当对象子显示对象存在panel且panel有子集时,旋转此显示对象会导致此显示对象的同级对象消失!(1.7.10beta) [ 44%]

...der.load([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS}],Laya.Handler.create(this,this.loadComp)); } private loadComp():void{ var parent:ui.ParentViewUI = new ui.ParentViewUI(); Laya.stage.addChild(parent); //当注释掉设置rotaion的代码则没有问题,否则会导致显示异常,其他...

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

729. 动效模板(JavaScript-LayaAir基础篇(JS)-动画基础) [ 44%]

...添加到舞台上 Laya.loader.load("./res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //实例化导出的UI类 var efc = new ui.TestPUI(); //添加到舞台 Laya.stage.addChild(efc); } ``` 运行后,按钮被按下时,动画效果如动图11所示: ![12](img/1...

来源: Laya2.0_文档 发布时间: 20210715

730. 动效模板(TypeScript-LayaAir基础篇(TS)-动画基础) [ 44%]

...面添加到舞台上 Laya.loader.load("./res/atlas/ui.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //实例化导出的UI类 var efc:ui.EffectAnimationDemoUI = new ui.EffectAnimationDemoUI(); //添加到舞台 Laya.stage.addChild(efc); } }new Main(); ``` 运行后,...

来源: Laya2.0_文档 发布时间: 20210715