大约有 520 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0043 秒)
Laya_社区(399) Laya2.0_文档(39) Laya3.0_api(32) Laya_示例(19) Laya3.0_文档(15) Laya2.0_示例(9) laya_api(5) Laya2.0_api(2)
...res/room.lh");//方法二:预加载,创建为Sprite3D类型Laya.loader.create("res/room.lh",Laya.Handler.create(this,this.onCreateComplete));//预加载完成后回调private onCreateComplete():void{//实例化加载并创建好的3D对象var sprite3D:Laya.Sprite3D = Laya.loader.getRes("res/room...
来源: Laya_社区 发布时间: 20180817
...ar bt = Physics3D._bullet; var btColObj = bt.btCollisionObject_create(); bt.btCollisionObject_setUserIndex(btColObj, this.id); bt.btCollisionObject_forceActivationState(btColObj, PhysicsComponent.ACTIVATIONSTATE_DISABLE_SIMULATION); var flags = bt.btCo...
来源: Laya_社区 发布时间: 20200505
...能 directionLight.shadowPCFType = 3; Laya.loader.create([ "res/plane.lh", "res/LayaMonkey.lh" ], Laya.Handler.create(this, onComplete)); var _quaternion = new Laya.Quaternion(); Laya.timer.frameLoop(1, n...
来源: Laya_社区 发布时间: 20180725
...eBinds():void{ let source:BindSource; let position:Laya.Point=Laya.Point.create(); for(let index:number=0;index<this.__bindList.length;index++){ source=this.__bindList[index]; SkeletonUtils.getBoneLocalPoint(this,source.boneName,position); source.x=source.offestX+position.x; source.y=source.of...
来源: Laya_社区 发布时间: 20190805
... 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
...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
...Laya3D.init (laya.d3.js:14694) at new GameUI (GameUI.ts:34) at SceneLoader.create (laya.core.js:22061) at EventHandler.__proto.run (laya.core.js:1385) at SceneLoader.__proto.event (laya.core.js:1156) at SceneLoader.__proto._checkNext (laya.core.js:15949) at SceneLoader.__proto.onOneLoadComplete (lay...
来源: Laya_社区 发布时间: 20181227
...00, Laya.WebGL); Laya.loader.load("res/atlas/images.atlas",Laya.Handler.create(this,this.onLoaded),null,Laya.Loader.ATLAS); } onLoaded(){ console.info("onLoaded"); this.tiledMap = new Laya.TiledMap(); this.tiledMap.createMap("desert.json", new Laya.Rectangle(0, 0, Laya.stage.width, La...
来源: Laya_社区 发布时间: 20171125
...源,加载后AddChild会报错,请教一下什么原因。 Laya.loader.create("laya_assert/LayaScene_role/role.lh", Handler.create(_instance, OnCreateComplete1)); private static function OnCreateComplete1():void{ trace("complete load role"); var sprite3D:Sprite3D = Laya.loader.getRes("laya_asser...
来源: Laya_社区 发布时间: 20181117
...load([{url:"sfx/hit01.mp3",type:Laya.Loader.SOUND}],Laya.Handler.create(this,this.onSfxLoad)); 但是提示[warn]Retry to load: sfx/hit01.mp3 [error]Failed to load: sfx/hit01.mp3 资源文件是存在的 w1114367261 • 2018-04-23 11:30 1,直接playSound的话laya会先查找你是否加...
来源: Laya_社区 发布时间: 20180422