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

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

951. 骨骼动画-换装 [ 41%]

...ure = mFactory.buildArmature(1); Laya.stage.addChild(mArmature); mArmature.pos(mStartX, mStartY); // mArmature.scale(0.5, 0.5); mArmature.on(Event.STOPPED, this, this.completeHandler); this.play(); this.changeSkin(); Laya.timer.loop(1000, this, this.changeSkin); } changeSkin() { mCurrSkinIndex++; le...

来源: Laya2.0_示例 发布时间: 20260303

952. WebSocket发送与接收数据(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 41%]

...;//把接收到的二进制数据读进byte数组便于解析。 this.byte.pos = 0;//设置偏移指针; ////下面开始读取数据,按照服务器传递过来的数据,按照顺序读取 var a = this.byte.getByte(); var b = this.byte.getInt16(); var c = this.byte.getFloat32(); var d = this....

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

953. Button属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 41%]

...(btn); //设置Button相关的属性 btn.width = 100; btn.height = 50; btn.pos(100,100); btn.label = "按钮"; } } } ``` 上述代码运行效果如动图2所示: ![动图2](img/2.gif) (动图2) **Tips:** Button 组件的属性接口介绍请参考 [Button API](https://layaair2.ldc2.layabox.com/ap...

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

954. 时间轴动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 41%]

...动画的pivot动画 tl2.play(0,true,"pivot"); //动画的显示位置 tl2.pos(300,0); } ``` 示例代码运行效果如动图31所示: ![31](img/31.gif)(动图31) ### 3.4 在UI中使用时间轴动画,然后在项目代码中调用。 #### 3.4.1 创建UI页,添加Animation动画到场景中...

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

955. 基础文本 · LayaAir3.4 · 引擎文档 · LAYABOX [ 41%]

...已创建完毕,此方法只执行一次 */ onAwake(): void { this.txt.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.txt.size(500, 30); //大小 this.txt.pivot(this.txt.width/2, this.txt.height/2); //轴心点 this.txt.text = "大家好,欢迎各位开发者使用...

来源: Laya3.0_文档 发布时间: 20251010

956. socket报错,on: reserved1 = 1, reserved2 = 1, reserved3 = 0 [ 41%]

...;//把接收到的二进制数据读进byte数组便于解析。 this.byte.pos = 0;//设置偏移指针; trace('getInt16=',this.byte.getInt16()); trace('getInt32=',this.byte.getInt32()); trace('getString=',this.byte.getString()); } private function closeHandler(e:Object= null):void { //关闭事...

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

957. 使用Laya.loader.load加载Laya.Loader.FONT位图字体文件时就会出现无限循环加载,一直到浏览器奔溃 [ 41%]

...名称,以字符串形式表示 txt.leading = 5; // 垂直行间距 txt.pos(Laya.stage.width - txt.width >> 1, Laya.stage.height - txt.height >> 1); } }   new Text_BitmapFont();   结果截图: 2019-02-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

958. 时间轴动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 41%]

...动画的pivot动画 tl2.play(0,true,"pivot"); //动画的显示位置 tl2.pos(300,0); } } new GameMain(); ``` 示例代码运行效果如动图31所示: ![31](img/31.gif)(动图31) ### 3.4 在UI中使用时间轴动画,然后在项目代码中调用。 #### 3.4.1 创建UI页,添加Animation...

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

959. [临时解决]bug?加载sk问题 [ 40%]

...加载时报错,就是这里: laya.core.js的7430行    if (this._pos_+2 > this._length)throw "getUint16 error - Out of bounds"; 但是,不使用预加载,就不报错,只是不知道什么时候真的加载完成,那个_template不再为null,我就可以调用play了。   怎...

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

960. 时间轴动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 40%]

...画的pivot动画 tl2.play(0, true, "pivot"); //动画的显示位置 tl2.pos(300,0); } } } ``` 示例代码运行效果如动图31所示: ![动图31](img/31.gif) (动图31) #### ### 3.4 在UI中使用时间轴动画,然后在项目代码中调用。 #### 3.4.1 创建UI页,添加Animation动...

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