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

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

721. 在模型有刚体的情况下,怎么才能让模型只围绕一个轴进行旋转 [ 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

722. 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

723. 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

724. 怎么对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

725. 【简单跑酷--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

726. 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

727. 动效模板(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

728. 动效模板(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

729. 小游戏子域程序加载到图集后,取图集内资源报错。 [ 43%]

...nction beginLoad():void { Laya.loader.load("res/images/rank.json", Handler.create(this, onLoaded)); } private function onLoaded():void { trace("加载成功"); var c:Image = new Image("rank/country.png"); Laya.stage.addChild(c); }  以上是子域项目中加载图集和取资源的代码。代码...

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

730. Button属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 43%]

...成功后,执行onLoaded回调方法 Laya.loader.load(skin,Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个Button实例 var btn = new Laya.Button(skin); //将Button添加到舞台上 Laya.stage.addChild(btn); //设置Button相关属性 btn.width = 100; btn.height = 50; btn....

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