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

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

111. laya.d3.graphics.IndexBuffer3D [ 77%]

...se) 创建一个 IndexBuffer3D,不建议开发者使用并用IndexBuffer3D.create()代替 实例。 IndexBuffer3D  _bindForVAO():void[override] IndexBuffer3D  bind():Boolean[override] IndexBuffer3D  destroy():void[override] IndexBuffer3D  getData():Uint16Array 获取索引数据。 IndexBuff...

来源: Laya2.0_api 发布时间: 20190513

112. 求助。资源加载问题,按照官方demo出现问题 [ 77%]

...使用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

113. 使用IDE制作的动画在pc模拟器播放OK在手机端不显示 [ 77%]

...','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

114. 3D粒子特效初始化卡顿 [ 77%]

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

115. [0]laya-zip让你的游戏加载速度提升350%!! [ 77%]

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

116. Pool 使用 Laya.Prefab [ 76%]

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

117. 3d导入粒子效果报错 [ 76%]

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

118. 发射射线检测不到,物体有包围盒 [ 76%]

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

119. 3D场景销毁后,仍有引用存在,内存中场景及引用其的对象无法销毁 [ 76%]

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

120. 关于要自定shader的同学 [ 76%]

...的是当前的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