大约有 520 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0048 秒)
Laya_社区(399) Laya2.0_文档(39) Laya3.0_api(32) Laya_示例(19) Laya3.0_文档(15) Laya2.0_示例(9) laya_api(5) Laya2.0_api(2)
...息 Laya.Stat.show(); //预加载 Laya.loader.load(this.arr, Laya.Handler.create(this, this.onAssetLoaded), Laya.Handler.create(this, this.onLoading, null, false), Laya.Loader.ATLAS); }; //加载完成后 p.onAssetLoaded = function() {}; //加载进度 p.onLoading = function(num) { //先添加进度...
来源: Laya_社区 发布时间: 20170803
...: Scene3D; Scene3D.load("res/laya-test.ls",Handler.create(null,function(sp:Scene3D):void{ scene = Laya.stage.addChild(sp) as Scene3D; })); 找到对应的示例代码了,但是编译报错。。。。用的是layaAi...
来源: Laya_社区 发布时间: 20181115
...0); //加载引擎需要的资源 var map1:TiledMap = new TiledMap(); map1.createMap("aa.json",new Rectangle(0,0,1200,720),Handler.create(this,loadMap_1_OK)); } private function loadMap_1_OK():void{ console.log("地图三加载完成"); } } } 2017-01-05 添加评论 免费帖 --> 分享 微博 QZONE...
来源: Laya_社区 发布时间: 20170105
...包吗? 请问 3D shader 预编译,需要怎么处理? Laya.Handler.create 回调 load方法的progress回调进的次数太少了。是我哪里设置有问题么 官方技术文档里:微信小游戏进阶处理,AS3,TS,JS并不相同,请问关于AS3的wxlocal白名单文件适用于JS...
来源: Laya_社区 发布时间: 20171103
...es/Bag.json", type:Laya.Loader.BUFFER} ], Laya.Handler.create(this, this.onLoaded)); Laya.core.js 调试log __proto._endLoad=function(resInfo,content){ var url=resInfo.url; //输出//////////////////////////////// console.log("url:"+url); content==null?console.log("content...
来源: Laya_社区 发布时间: 20200429
...修改方案心中就有数了,首先在core库中,在DrawTrianglesCmd.create后修改color的传参处理 , 然后在ani库中的BoneSlot中添加一个变量colorFilter , 在GraphicsAni中修改drawSkin的参数 , 。 完成了库的拓展, 调用就很简单了,Skeleton实例调用g...
来源: Laya_社区 发布时间: 20181107
...链接 提交 1 个回复 Monica - 知识达人 赞同来自: “can not create:ScaleButton”报这个是因为没有注册组件导致的。在引擎初始化之后,UI页面实例化之前注册一下组件即可。 注册组件: View.regComponent("ScaleButton",component.ScaleButton) regCompo...
来源: Laya_社区 发布时间: 20170519
.../IndexBuffer3D" IndexBuffer3D Class IndexBuffer3D 请使用LayaGL.RenderOBJCreate.createIndexBuffer3D来创建 IndexBuffer3D 类用于创建索引缓冲。 Hierarchy IndexBuffer IndexBuffer3D NativeIndexBuffer3D Index Constructors constructor Properties _buffer _bufferType _bufferUsage _byteLength _...
来源: Laya3.0_api 发布时间: 20231115
...次加载到的资源是无效的 Laya.Sprite3D.load(path, Laya.Handler.create(this, this.loadCompleted)); public loadCompleted(sp:Laya.Sprite3D):void { this._loaded = true; let useObject:Laya.Sprite3D = sp.getChildAt(0) as Laya.Sprite3D; } 重复加载...
来源: Laya_社区 发布时间: 20200609
...(); camera.sky=skyDome; Laya.BaseMaterial.load("res/env.png", Laya.Handler.create(null, function(mat) { console.log(camera); //执行到了这里,显示了camera中的sky存在 //camera.sky = mat; //就算这里赋值也没用 })) ========执行的结果就是不报错也没反应 console.log(came...
来源: Laya_社区 发布时间: 20181203