大约有 520 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0055 秒)
...? Native2.0正式版wss连接不成功web版本没问题,有DEMO Laya.Handler.create和new Laya.Handler有啥区别 bin目录要加入版本管理吗 atlas目录下.json文件与.atlas的区别 大于4M时,放到layaNativeDir这个目录 --- 这个具体怎么操作 view和Dialog区别 关于...
来源: Laya_社区 发布时间: 20180531
...10:59 //加载图集 Laya.loader.load("res/atlas/hero.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) //先把四张小图拿出来 var hero_down1=Laya.loader.getRes("hero/hero_down1.jpg"); var hero_down2=Laya.loader.getRes("hero/hero_down2.jpg"); var h...
来源: Laya_社区 发布时间: 20170330
...main.ts 里面 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION); 和 Laya.AtlasInfoManager.enable("fileconfig.json", Laya.Handler.create(this, this.onConfigLoaded)); 都要删掉。 内涵tv何吓...
来源: Laya_社区 发布时间: 20190305
...pLoaded() this.tMap.createMap("res/TiledMap/orthogonal.json",viewRect,Laya.Handler.create(this,onMapLoaded)); function onMapLoaded(){ //将原地图放大2倍 this.tMap.scale = 2; } ``` 运行效果如图8所示。  (图8) #### 2.2.2 设置地图缩放的中心点 很明显,图8...
来源: Laya2.0_文档 发布时间: 20210715
.../激活资源版本控制 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(null, beginLoad), Laya.ResourceVersion.FILENAME_VERSION); function beginLoad(){ Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(null, onLoaded)); }*/ function updateItem(cell, index) { ...
来源: Laya_社区 发布时间: 20180507
... Laya.Texture2D.load("res/threeDimen/Physics/rocks.jpg", Laya.Handler.create(this, function (tex) { this.mat1.albedoTexture = tex; })); //平面加载 let plane = this.scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlan...
来源: Laya_社区 发布时间: 20201127
...后执行回调方法 this.roleAni.loadAtlas("res/atlas/role.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //添加到舞台 Laya.stage.addChild(this.roleAni); } } new AtlasAniDemo(); ``` 运行代码,如图5所示。动画已加载到舞台上,默认是未播放状...
来源: Laya2.0_文档 发布时间: 20210715
...次方图集区别在哪? var 与 name 的详细区别是什么? Laya.Handler.create和new Laya.Handler有啥区别 dispone和destory的区别 view和Dialog区别 TrailSprite3D的ALIGNMENT_TRANSFORM_Z模式和ALIGNMENT_VIEW模式有什么区别? Laya的Scene和View什么区别? 关于打包...
来源: Laya_社区 发布时间: 20191125
...Object(); obj["x"]=this.x; obj["y"]=this.y+num; Tween.to(this,obj,500,null,Handler.create(this,startAnimated)) } } 开始是同步的 时间长了动画会出现很大的误差 下面是不同步的时候和开始同步的时候的图片 附件 : --> 2018-05-24 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20180524
...loader,那就不用处理了。 Laya.loader.load("res/aaa.scene", Laya.Handler.create(null, (content)=>{console.log(content)})); Laya.loader.load("res/bbb.json", Laya.Handler.create(null, (content)=>{console.log(content)})); 2019-04-25 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个...
来源: Laya_社区 发布时间: 20190425