大约有 520 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0046 秒)
Laya_社区(399) Laya2.0_文档(39) Laya3.0_api(32) Laya_示例(19) Laya3.0_文档(15) Laya2.0_示例(9) laya_api(5) Laya2.0_api(2)
...se) 创建一个 IndexBuffer3D,不建议开发者使用并用IndexBuffer3D.create()代替 实例。 IndexBuffer3D _bindForVAO():void[override] IndexBuffer3D bind():Boolean[override] IndexBuffer3D destroy():void[override] IndexBuffer3D getData():Uint16Array 获取索引数据。 IndexBuff...
来源: Laya2.0_api 发布时间: 20190513
...使用Laya.Sprite3D.load可以加载使用,但是当我使用Laya.loader.create,能加载出来,但是无法正常使用,会提示laya.core.js:12752 Uncaught TypeError: node._setParent is not a function 具体代码如下: Laya.Sprite3D.load(url, Laya.Hander.create(this, this.onLoadCo...
来源: Laya_社区 发布时间: 20200313
...','imgdebris/p1_slj.png',]; // this.loader.load(this.urls[0], Laya.Handler.create(this, this.onAssetloaded)); this.loader.load(this.urls,this.Handler.create(this,this.onAssetloaded),this.Handler.create(this, this.onLoading, null, false)); }, onAssetloaded : function(texture){ this.tl = new Laya.Anim...
来源: Laya_社区 发布时间: 20190117
...oupName:String = null; if(isGroup == true){ groupName = url; } Laya.loader.create(_path, Handler.create(this,OnComplete,null),null,null,null,1,true,groupName); }else{ var item:Sprite3D = Pool.getItem(_path); if(item != null){ //直接用缓存的 Instantiate(item); }else{ OnComplete(); } } } public ...
来源: Laya_社区 发布时间: 20180425
...ntion, only resource files in the level-1 directory are loaded Laya.loader.create([{ url: "xx.zip", type:"ZIP"}]) [/size][/code] 如果只需要加载zip包中的部分资源,或者资源路径在多级目录下。可以在constructParams中进行配置,来加载指定文件资源。[size=14][co...
来源: Laya_社区 发布时间: 20211227
...ab public targetBox:Laya.Prefab; let box: Laya.Sprite = Laya.Pool.getItemByCreateFun("ItemBox", this._control.targetBox.create, this._control.targetBox); 运行报错: Cannot read property 'create' of undefined targetBox又在 control里面引用一个Prefab 2019-08-26 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20190826
...source/Texture/MapGrid.psd) extension with: psd. at LoaderManager.__proto._create (file:///C:/Users/borui/Desktop/Cube3D/bin/libs/laya.core.js:13120:11) at LoaderManager.__proto.create (file:///C:/Users/borui/Desktop/Cube3D/bin/libs/laya.core.js:13088:10) at Loader.Laya3D._onMaterilLmatLoaded (file:...
来源: Laya_社区 发布时间: 20180328
... Laya.Scene3D.load("res/LayaScene_game/Conventional/game.ls",Laya.Handler.create(null,function(scene3d){ // HelperApp.a = scene3d; //加载完成获取到了Scene3d scene3d.name = 'good'; self.owner.addChild(scene3d); ...
来源: Laya_社区 发布时间: 20220506
... this.scene.addChild(this.camera); Laya.loader.create("res/scene_Effect/Conventional/Effect_zhujue_attack.lh", Laya.Handler.create(this, () => { let item = Laya.loader.getRes("res/scene_Effect/Conventional/Effect_zhujue_attack.lh"); ...
来源: Laya_社区 发布时间: 20191102
...的是当前的sprite在游戏中设置的大小 new_texture = ls.Texture.create(new_texture, 0, 0) 重新获取纹理然后将textureHost设置为new_texture sprite.shaderValue.textureHost = new_texture 其他的参照shader原文档 2.要修改shader里面的值 class ShaderValue extends Laya.V...
来源: Laya_社区 发布时间: 20180531