大约有 520 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0063 秒)
Laya_社区(399) Laya2.0_文档(39) Laya3.0_api(32) Laya_示例(19) Laya3.0_文档(15) Laya2.0_示例(9) laya_api(5) Laya2.0_api(2)
...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
...) 创建一个 VertexBuffer3D,不建议开发者使用并用VertexBuffer3D.create()代替 实例。 VertexBuffer3D bind():Boolean[override] VertexBuffer3D destroy():void[override] VertexBuffer3D getData():* 获取顶点数据。 VertexBuffer3D setData(data:*, bufferOffset:int = 0, dataSt...
来源: Laya2.0_api 发布时间: 20190513
...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
... 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
...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
..., {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
...目是都导出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
...r(this, onSelect, [cardList]); // 只能用new Handler? 不能用 Handler.create // Handler.create(this, onSelect, [cardList]); } cardList.itemRender = MyCardUI; ...
来源: Laya_社区 发布时间: 20170310
...的是当前的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
...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