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

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

1041. 加载.atlas动画错误 [ 49%]

...法 roleAni.loadAtlas("http://10.10.20.58/chicken/res ... ot%3B,laya.utils.Handler.create(this,function(){ //添加到舞台 Laya.stage.addChild(roleAni); roleAni.play(); }));     代码就这几行.... 2018-03-22 0 0 分享 微博 QZONE 微信 wdmingzi2 赞同来自: 只是单纯的调用加载...

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

1042. 当使用Image作为一个对象的遮罩时,设置Image的ScaleX为0时遮罩失效! [ 49%]

...Laya.loader.load([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS}],Laya.Handler.create(this,this.loaded,null)); } private loaded():void{ var img:Laya.Image = new Laya.Image(); img.skin = "comp/img_pro.png"; Laya.stage.addChild(img); var imgMask:Laya.Image = new Laya.Image(); imgMask.skin = img.sk...

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

1043. 使用js压缩工具报错 [ 49%]

...分享 微博 QZONE 微信 kylin 赞同来自: 第813行 Config.FunRestart=Handler.create(this,this.on重启); 定义的变量、函数名等,不要出现中文等非ASCII字符,变量的命名最好要符合规范。   LayaAirIDE里的压缩工具会分析代码,类似的中文命名的变...

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

1044. 物理引擎,刚体施加力效果错误,有人帮忙看下吗 [ 49%]

...);   //加载精灵 Sprite3D.load("LayaScene_cu_demo/Conventional/Cu.lh", Handler.create(null, function(sp:Sprite3D):void { cu = scene.addChild(sp) as Sprite3D; cu.transform.rotate(new Vector3(0, -90, 0), true, false); _rb = cu.getComponent(Rigidbody3D) as Rigidbody3D; }));   //施加作用力或...

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

1045. 请问UI之间的场景切换要怎么写 [ 48%]

...e.screenMode = "horizontal"; Laya.loader.load("res/atlas/sanguo.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); function onLoaded(){ Laya.sg_sign = new sg_sign(); Laya.stage.addChild(Laya.sg_sign); } function onWxSign1(){ Laya.sg_sign.removeSelf(); Laya.Pool.recover("sg_sign",Laya....

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

1046. tiledmap 可以在图块层的指定格子上添加Sprite吗 [ 48%]

...dMap地图 this.tMap.createMap("map/"+mapname+".json",viewRect, laya.utils.Handler.create(this, this.test));//, null, new Laya.Point(1600, 816)); } private test(){ var testLayer:Laya.MapLayer = this.tMap.getLayerByName("player"); this.tMapPlayer = new Laya.Sprite(); this.tMapPlayer.graphics.drawRect...

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

1047. 启用版本管理后,Laya.loader.load加载在微信web开发者工具触发不了回调 [ 48%]

.../hall/login.atlas", type: Laya.Loader.ATLAS}, ] Laya.loader.load(resArray, Handler.create(null, function(){ console.log("回调")}));   这样用Laya.loader.load加载在微信web开发者工具触发不了回调,资源的url都是有资源的, Laya.URL.basePath的路径也是对的   laya sdk...

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

1048. ReferenceError: Loader is not defined 搞不懂引擎原生的也会报这个错? [ 48%]

...t);  let partPath = "res/aixin_bao.part"; Laya.loader.load(partPath, Laya.Handler.create(this, this.onAssetsLoaded), null, Loader.JSON); }  onAssetsLoaded(settings) {         // 当load数组的时候,回调函数传入的参数不再是资源,可以通过以下方法获取资源   ...

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

1049. 多摄像机窗口的使用(JavaScript-3D基础(JS)-LayaAir3D之Camera) [ 48%]

...ya.Sprite3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(null, function(sp){ //将模型加到场景上 var layaMonkey = scene.addChild(sp); })) ``` 编译运行上述代码,运行效果如图6。开发者们同时也可以测试,在单摄像机下时,DrawCall...

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

1050. 多摄像机窗口的使用(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 48%]

...ya.Sprite3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(null, function(sp) { //将模型加到场景上 var layaMonkey = scene.addChild(sp); })) ``` 编译运行上述代码,运行效果如图6。开发者们同时也可以测试,在单摄像机下时,DrawCall...

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