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

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

131. 关于bin目录 web目录的区别 [ 68%]

...? Native2.0正式版wss连接不成功web版本没问题,有DEMO Laya.Handler.createnew Laya.Handler有啥区别 bin目录要加入版本管理吗 atlas目录下.json文件与.atlas的区别 大于4M时,放到layaNativeDir这个目录 --- 这个具体怎么操作 viewDialog区别 关于...

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

132. 关于多个小动画打包到一个图集动画的问题 [ 68%]

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

133. WXOpenDataViewer 微信开放数据域 是不是不能响应鼠标拖动事件呢? [ 68%]

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

134. 用LayaAir引擎解析Tiled Map地图(JavaScript-2D进阶篇(JS)-扩展模块) [ 68%]

...pLoaded() this.tMap.createMap("res/TiledMap/orthogonal.json",viewRect,Laya.Handler.create(this,onMapLoaded)); function onMapLoaded(){ //将原地图放大2倍 this.tMap.scale = 2; } ``` 运行效果如图8所示。 ![图8](img/8.png) (图8) #### 2.2.2 设置地图缩放的中心点 很明显,图8...

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

135. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 68%]

.../激活资源版本控制 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

136. 3D网格添加刚体后设置欧拉角出现位置错误 [ 68%]

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

137. 图集动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 68%]

...后执行回调方法 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

138. ImageSprite在应用上的区别 [ 68%]

...次方图集区别在哪? var 与 name 的详细区别是什么? Laya.Handler.createnew Laya.Handler有啥区别 disponedestory的区别 viewDialog区别 TrailSprite3D的ALIGNMENT_TRANSFORM_Z模式ALIGNMENT_VIEW模式有什么区别? Laya的SceneView什么区别? 关于打包...

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

139. 关于Tween类多个对象同时缓动的时候过一段时间会不同步 [ 68%]

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

140. 资源压缩成zip后加载的问题 [ 68%]

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