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

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

511. 资源加载后的 回调 [ 63%]

...源,每次加载完成后回调loadselectanimation Laya.loader.load(picurl,Handler.create(this, this.loadselectanimation,arrr),null,Loader.ATLAS); 现在的问题是,同一个资源第二次加载的时候,就不执行回调函数了. 是不是第一次加载以后有缓存了,第二次就不加载...

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

512. ProgressBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 63%]

...{ import laya.display.Stage; import laya.ui.ProgressBar; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_ProgressBar { private var progressBar:ProgressBar; public function UI_ProgressBar() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); //画布垂直居...

来源: Laya2.0_文档 发布时间: 20210715

513. 导出插件导出模型不能用 [ 63%]

...1/t01.ls", "DoorShelf/shelf.lh", "LayaScene_layaScene/layaScene.lh"], Laya.Handler.create(this, onComplete)); ... var shelf = scene.addChild(Laya.Sprite3D.load("LayaScene_layaScene/layaScene.lh")); shelf.transform.position = new Laya.Vector3(-18.69, 1.1, 43.8);                 但是无法...

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

514. poly组件是各种坑 [ 63%]

....0上运行会报错 为什么官网例子里,UI组件的事件都用new Handler,而资源加载用Handler.create() 问题状态 最新活动: 2018-01-22 11:23 浏览: 1107 关注: 3 人 panle130 • 2017-02-27 10:57 现在我不是说旋转的问题啊,是poly在这个image下,image的child...

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

515. 加载.lh文件 运行后黑屏 无法显示 [ 63%]

...ya3D.HIERARCHY, priority: 1}];     //Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete));         Laya.loader.create("Export/LayaScene_JJF/Conventional/JJF.lh", Laya.Handler.create(this, this.onComplete));     }     public onComplete():void {     //创建...

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

516. 动画实例在调用含有名字参数的时候获取不到边界 [ 63%]

... i of this.playerUnit ){ i.loadAtlas("./character/m1.atlas",Laya.Handler.create(this,this.playerUnitLoaded)); } for(let i of this.enemyUnit){ i.loadAtlas("./character/m1.atlas",Laya.Handler.create(this,this.enemyUnitLoaded)); } } playerUnitLoaded(){ for(let i in this.playerUnit){...

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

517. Laya.loader.load和new Laya.Loader区别? [ 63%]

...次方图集区别在哪? var 与 name 的详细区别是什么? Laya.Handler.create和new Laya.Handler有啥区别 layaair与layabox的区别 atlas目录下.json文件与.atlas的区别 使用Laya.loader.load缓存下来的文件还在res目录下吗?在编辑模式下怎么调用缓存下来...

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

518. 【BUG】加载的url中有错误url时,laya偶现加载complete不回调 [ 63%]

...im_path5 }, ]; Laya.loader.retryNum = 0; Laya.loader.create(res3DArr, Laya.Handler.create(this, this.onRes3DLoaded), null);   结论:onLoad时checkNext触发endLoad,会重置customParse属性,onError的时候没有触发这个逻辑,导致复用这个loader时,customParse属性不正确...

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

519. 3D模型无法用Tween类吗 [ 63%]

...ion;Laya.Tween.to(box.potOld,{     x:1     ,y:2     ,update:new Laya.Handler(box,function(){         this.transform.position = this.potOld;     }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){     console.log("complete"); }),ConstValue.animation...

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

520. unity导出有动作的模型,加载时报错 [ 63%]

....Sprite3D.load("res/LayaScene_Model_1001/Conventional/Model_1001.lh", Laya.Handler.create(null, (sprite:Laya.Sprite3D) => { this.mScene.addChild(sprite); sprite.transform.translate(new Laya.Vector3(-0.3, 0, 0)); }));   报错信息laya.d3.js:6573 Uncaught TypeError: Cannot set property 'x' of un...

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