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

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

1251. 2.0的版本在ios下适配横竖屏有问题。 [ 51%]

...om/demo2/h5/demo.html?language=ch&category=2d&group=SmartScale&name=T&lib=core,webgl,ui 打开链接,打开手机自动旋转,切换到fixedwidth,或者fixedheight,然后改变手机方向就能发现问题了。 1.0的版本经过测试没有问题,我只想说版本的更...

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

1252. 动态加载的 animation第二次加载的时候不显示 [ 51%]

...候都执行这个的. item=new Laya.Animation(); if (i!=whichistrue) { aniname="lose_1_"+aniname+".ani"; } else { ran=Math.random(); aniname="win_1_"+aniname+".ani"; } item.loadAnimation(aniname); item.x=60+(i-1)*120; item.y=y; item.size(80,80); item.name=aniname; this.doworkui.addChild(item);   2...

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

1253. [LayaAir3]打包harmonyos next后,运行报错 [ 51%]

...                              E     [Simulator Log]Error name:TypeError 10-31 09:07:08.249   20856-2248    C01304/Simulator                                      E     [Simulator Log]Error message:Cannot read property getContext of undefined 10-31 09:07:08....

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

1254. Laya.timer.frameLoop(1, this, this.aaa);对象移动会出现颤抖现象 [ 51%]

...pivotY = this.playerHB.height / 2; this.playerHB.y = 500; this.playerHB.txtName.text = "搞个毛啊"; // this.playerVO.name; this.addChild(this.playerHB); } private aaa():void { this.playerHB.x += this.bb; console.log( this.playerHB.x); if(this.playerHB.x > 1000) { this.bb *= -1; } if(this.playe...

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

1255. 嵌套类型的protobuf报错 [ 51%]

...UId = 7; } message ServerInfo {  required int32 id = 1;  required string name = 2;  required string address = 3;   required int32 status = 4;  optional string serverUId = 5;  optional int32 controlStatus = 6;  optional string closeMessage = 7; }   这种嵌套类型的proto decode的时候...

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

1256. 引擎遮罩报错 [ 51%]

... • 2017-09-13 20:09 @Monica:this.itemSpr = new Laya.Sprite; this.itemSpr.name = 'mySprite'; // this.itemSpr.cacheAs = 'normal'; this.itemSpr.cacheAsBitmap = false; this.addChild(this.itemSpr); //卡马克 for (var i: number = 0; i < 15; i++) { var attItem: HeadItem = new HeadItem; attItem.x = i...

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

1257. 关于2.3.0动作克隆问题,AB两个怪物用同一个模型,A的动作会影响B。 [ 51%]

...状态的时候是 let state: AnimatorState = new AnimatorState(); state.name = key;// walk/idle/attack state.clipStart = clipStart; state.clipEnd = clipEnd; state.clip = this._animator.getDefaultState().clip; this._animator.addState(state);每个状态的clip都是 this._animator.getDefaultState()...

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

1258. laya.display.FrameAnimation_API3.0 [ 51%]

...nGraphics _scene _skinBaseUrl _url autoSize hitTestPrior loop mouseThrough name tag wrapMode WRAP_PINGPONG WRAP_POSITIVE WRAP_REVERSE drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components count customRenderEnable destroyed displa...

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

1259. 節點的destroy方法參數默認為true時是否會遞歸調用子對象的destroy方法? [ 51%]

...测"这个方法是不是不适用于高低起伏的地面? 关于@prop {name:Tab,type:Node} 我觉得好麻烦啊 ,请问一下有别的方法吗 MiniAdpter.autoCacheFile=true没有任何作用,并没有缓存资源 [闪退!!!][崩溃!!Crash]LayaNative 2.8.0 js 调用 oc 同步方法,有返...

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

1260. Byte二进制读写(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 51%]

...接中,我们接收和发送网络消息。 ```typescript var msg:any ={name:"xxx",age:18,weight:65.5,height:175}; var byte:Laya.Byte = new Laya.Byte();//实例化byte数组 byte.endian = Laya.Byte.LITTLE_ENDIAN;//设置大小端 byte.writeUTFString(msg.name);//写入数据 byte.writeByte(msg.age)...

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