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

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

281. js进度,进度,js场景进度效果 [ 66%]

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

282. 用unity插件导出lh格式文件,再代码中加载使用的问题 [ 66%]

...: Scene3D;             Scene3D.load("res/laya-test.ls",Handler.create(null,function(sp:Scene3D):void{                 scene = Laya.stage.addChild(sp) as Scene3D;             }));   找到对应的示例代码了,但是编译报错。。。。用的是layaAi...

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

283. 有没有懂tiledmap地图的朋友帮忙看看问什么地图加载不出来 [ 66%]

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

284. 在layabox里protobuf只能用回调的方式处理吗? [ 66%]

...包吗? 请问 3D shader 预编译,需要怎么处理? Laya.Handler.create 回调 load方法的progress回调进的次数太少了。是我哪里设置有问题么 官方技术文档里:微信小游戏进阶处理,AS3,TS,JS并不相同,请问关于AS3的wxlocal白名单文件适用于JS...

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

285. layabox加载fairygui发布的二进制文件报错 [ 66%]

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

286. Laya对骨骼插槽添加滤镜 [ 66%]

...修改方案心中就有数了,首先在core库中,在DrawTrianglesCmd.create后修改color的传参处理 , 然后在ani库中的BoneSlot中添加一个变量colorFilter , 在GraphicsAni中修改drawSkin的参数 , 。 完成了库的拓展, 调用就很简单了,Skeleton实例调用g...

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

287. 关于自定义组件的问题(TS版) [ 66%]

...链接 提交 1 个回复 Monica - 知识达人 赞同来自: “can not create:ScaleButton”报这个是因为没有注册组件导致的。在引擎初始化之后,UI页面实例化之前注册一下组件即可。 注册组件: View.regComponent("ScaleButton",component.ScaleButton) regCompo...

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

288. laya.d3.graphics.IndexBuffer3D_API3.0 [ 66%]

.../IndexBuffer3D" IndexBuffer3D Class IndexBuffer3D 请使用LayaGL.RenderOBJCreate.createIndexBuffer3D来创建 IndexBuffer3D 类用于创建索引缓冲。 Hierarchy IndexBuffer IndexBuffer3D NativeIndexBuffer3D Index Constructors constructor Properties _buffer _bufferType _bufferUsage _byteLength _...

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

289. 重复使用Laya.Sprite3D.load加载同一个lh类型的资源,发现第二次加载到的资源是无效的 [ 66%]

...次加载到的资源是无效的 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

290. 请问2.0中js怎么加天空盒子或穹顶,官网例子运行报错。 [ 66%]

...(); 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