大约有 622 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0052 秒)
Laya_社区(478) Laya2.0_文档(51) Laya3.0_api(50) Laya2.0_示例(16) Laya_示例(12) Laya3.0_文档(11) laya_api(2) Laya2.0_api(2)
...game.ls", Laya.Handler.create(this, () => { let gameScene = Laya.loader.getRes("res/scenes/LayaScene_game/game.ls") as Laya.Scene; Laya.stage.addChild(gameScene); }, null), Laya.Handler.create(this, (progress) => { console.log("当前进度:", progress) },null,false), Laya.Scene );07-11 16:53:...
来源: Laya_社区 发布时间: 20190711
...= new Laya.Vector3(0.6, 0.6, 0.6); //加载精灵 var monkey = Laya.Loader.getRes("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh"); //精灵添加脚本 monkey.addComponent(MonkeyScript); scene.addChild(monkey); } } ``` > 脚本类:(该脚本旋转了添加了这个脚本的物体) > ```typesc...
来源: Laya2.0_文档 发布时间: 20210714
...ource.ts:147 如果设置一个已缓存的资源obsolute为true,则 1)getRes仍然可以返回这个资源; 2)下次加载时会忽略这个缓存而去重新加载。。 Returns boolean Inherited from Resource.obsolute Defined in laya/resource/Resource.ts:151 如果设置一个已缓存的...
来源: Laya3.0_api 发布时间: 20231115
...是显示这个模型文件 let guns_test = Laya.Loader.getRes("res/my_res/guns_test.lh"); let a :Laya.Sprite3D = new Laya.Sprite3D(); a.addChild(guns_test.getChildAt(0).clone()); a.transform.translate(new Laya.Vector3(0,1.38...
来源: Laya_社区 发布时间: 20200107
...ource.ts:147 如果设置一个已缓存的资源obsolute为true,则 1)getRes仍然可以返回这个资源; 2)下次加载时会忽略这个缓存而去重新加载。。 Returns boolean Inherited from Resource.obsolute Defined in laya/resource/Resource.ts:151 如果设置一个已缓存的...
来源: Laya3.0_api 发布时间: 20231115
...= new Laya.Vector3(0.6, 0.6, 0.6); //加载精灵 var monkey = Laya.Loader.getRes("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh"); //精灵添加脚本 monkey.addComponent(MonkeyScript); scene.addChild(monkey); } } ``` > 脚本类:(该脚本旋转了添加了这个脚本的物体) > ```typesc...
来源: Laya2.0_文档 发布时间: 20210715
...ectComplete():void{ var effect:Laya.Sprite3D = Laya.loader.getRes("res/effect/2/Conventional/bullet.lh"); this.compileShader(effect); //===========放心使用吧================= var myeffect:Laya.Sprite3D = effect.clone(); } ...
来源: Laya_社区 发布时间: 20190404
...ource.ts:147 如果设置一个已缓存的资源obsolute为true,则 1)getRes仍然可以返回这个资源; 2)下次加载时会忽略这个缓存而去重新加载。。 Returns boolean Inherited from Resource.obsolute Defined in laya/resource/Resource.ts:151 如果设置一个已缓存的...
来源: Laya3.0_api 发布时间: 20231115
...何获取图集下的小图资源? 模型资源释放问题 Laya.loader.getRes的声音资源如何用Laya.SoundManager播放? 请问LayaNative2.0能否做到每个子游戏分别打包zip,在Native中解包并跳转? IDE中无法移动资源到另一个目录问题 IDE动画 添加过程出...
来源: Laya_社区 发布时间: 20170215
...der.JSON); } private function onLoaded():void { var obj:Object=Laya.loader.getRes("lang.lang"); Text.langPacks=obj; var texts:Text=new Text(); texts.text="hello!welcom LayaBox"; Laya.stage.addChild(texts); } } } 2016-10-18 1 0 分享 微博 QZONE 微信 a13121527420 - 哇啦哇啦哇啦! 赞同...
来源: Laya_社区 发布时间: 20161018