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

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

651. 提示资源重复加载 [ 60%]

...); //this.init(); this.swimpoolani.loadAtlas("./res/atlas/Comp.atlas",Laya.Handler.create(this,this.onLoaded));   } private onLoaded():void{   Laya.Animation.createFrames([swimpoorpath01,swimpoorpath02],"swimpoolani"); Laya.stage.addChild(this.swimpoolani); this.swimpoolani.play(0,true,"swimpoolan...

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

652. 通过laya设计模式制作的,要怎么给按钮绑定事件呢? [ 60%]

...// 预加载图集 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, this.onLoaded ), null, Laya.Loader.ATLAS) } onLoaded(){ Laya.stage.addChild(new TopUI()) Laya.stage.addChild(new TabUI()) this.getGold.on(Laya.Event.MOUSE_DOWN,this,function(){ console.log("点击事...

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

653. 摄像机动画的使用(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 60%]

...`typescript Laya.Scene3D.load('LayaScene_scene/Conventional/scene.ls',Laya.Handler.create(this,function(scene){ Laya.stage.addChild(scene); })); ``` ![](img/2.gif)(图2)

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

654. 摄像机动画的使用(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 60%]

...`typescript Laya.Scene3D.load('LayaScene_scene/Conventional/scene.ls',Laya.Handler.create(this,function(scene){ Laya.stage.addChild(scene); })); ``` ![](img/2.gif)(图2)

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

655. Laya中有木有事件完成后触发某功能的函数? [ 60%]

...请: 与内容相关的链接 提交 1 个回复 伯恩 赞同来自: Laya.Handler.create 2019-06-06 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 陌小成_highmore 相关问题 看了其他引擎才发现 LAYA 真的太太太太好用...

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

656. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 60%]

...p://layabox.com/"; qrcode.makeCode(url); Laya.stage.once("click",this,clickHandler); qrcodeSp = new Sprite(); Laya.stage.addChild(qrcodeSp); } private function clickHandler():void { var url:String = qrcode._oDrawing._elImage.src;//获取,注意这里是异步的,开发者可以加个延时在获...

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

657. 无法获取音频的时间长度 [ 60%]

...annel = Laya.SoundManager.playMusic("resources/sound/dh/gril1.wav", 1,Laya.Handler.create(this,() => {       }));     console.log(soundChItem.position+"");     console.log(soundChItem.duration+""); 附件 : --> 2023-05-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

658. 材质动画的使用(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 60%]

....load("res/threeDimen/scene/materialScene/Conventional/layaScene.ls", Laya.Handler.create(this, function(scene) { Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); })); ```

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

659. TS分离模式设置未打包图片输出目录导出资源无法加载未打包资源 [ 60%]

...ader.IMAGE },     { url: "test/TestPage.json", type: Loader.JSON }, ], Handler.create(this, this.onLoaded)); 运行报错: [warn]Retry to load: comp/image.png [error]Failed to load: comp/image.png   修改导出的TestPage.json里面对应控件引用的skin值加上对应路径 "skin":"unpack...

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

660. 在Unity中导出拖尾系统(JavaScript-3D基础(JS)-LayaAir3D之拖尾系统) [ 60%]

...载拖尾 Laya.Sprite3D.load('LayaScene_tst/Conventional/Sphere.lh',Laya.Handler.create(this,function(sp){ //将加载的拖尾添加给示例盒子 box.addChild(sp); //为了体现效果,我们移动盒子和摄影机观察效果 Laya.timer.frameLoop(1,this,function(){ //使用差速来体现移...

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