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

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

111. 场景进行destroy销毁后,再次加载同一场景,就会报错 [ 75%]

...o.addChild (file:///D:/H5/bin/libs/laya.core.js:13290:9)   at SceneManage.createScene (file:///D:/H5/bin/js/bundle.js:26107:20)   at BattleLoading.<anonymous> (file:///D:/H5/bin/js/bundle.js:18082:57)   at Handler.__proto.runWith (file:///D:/H5/bin/libs/laya.core.js:1399:59)   at LoaderMan...

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

112. laya.d3.graphics.VertexBuffer3D [ 75%]

...) 创建一个 VertexBuffer3D,不建议开发者使用并用VertexBuffer3D.create()代替 实例。 VertexBuffer3D  bind():Boolean[override] VertexBuffer3D  destroy():void[override] VertexBuffer3D  getData():* 获取顶点数据。 VertexBuffer3D  setData(data:*, bufferOffset:int = 0, dataSt...

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

113. 加载时间轴动画报错 [ 75%]

...w Laya.Animation(); this.ani.loadAtlas("res/atlas/comp.json", Laya.Handler.create(this, showApe));   function showApe(){ this.ani.loadAnimation("TimeLine.ani"); Laya.stage.addChild(this.ani); this.ani.play(); }   运行时报 TypeError:Cannot read property '_create' of null     at Animation._pro...

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

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

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

115. 如何在游戏入口处获取对象的子对象 [ 75%]

...ew TiledMap(); } _proto.showMap = function(num) { this.num = num; this.map.createMap("map/level/mota_map" + num + ".json",new Rectangle(0,0,448,448),Handler.create(this,this.mapLoaded));} _proto.mapLoaded = function(){ this.pass = this.map.getLayerByIndex(0);//获取通行层 console.log(this.pass);...

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

116. 关于laya图片资源缓存的问题 增量更新文件缓存 [ 75%]

..., {read: false}).pipe(clean()) }) /** 创建文件hash清单 */ gulp.task('create:hash',['clean'], () => { return gulp.src([ './server/static/**/*.atlas', './server/static/**/*.png', './server/static/**/*.mp3' ]) .pipe(hash({ template: '<%= name %><%= ext %>?version=<%= hash %>'...

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

117. 在脚本里自定义IDE属性预制体数组类型获取的结果不对 [ 74%]

...目是都导出json文件了,用prefab内容也是json的。 Laya.loader.create("prefab/car.json",Handler.create(this,onCar)); public function onCar(obj:Object):void{ var spr:Prefab = new Prafab();              spr.json=obj;             var car:Sprite = Pool.getItemByCreate...

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

118. list 数据不会及时渲染 [ 74%]

...r(this, onSelect, [cardList]); // 只能用new Handler? 不能用 Handler.create //                            Handler.create(this, onSelect, [cardList]);                     }                     cardList.itemRender = MyCardUI;            ...

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

119. 关于要自定shader的同学 [ 74%]

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

120. laya.resource.NativeRenderTexture2D_API3.0 [ 74%]

...W cpuMemory currentActive gpuMemory Methods _addReference _clearReference _create _end _removeReference _setCPUMemory _setCreateURL _setGPUMemory _start clear destroy end event getData getIsReady gpuCompressFormat hasListener isCreateFromURL off offAll offAllCaller on once recycle restore start dest...

来源: Laya3.0_api 发布时间: 20231115