大约有 1,304 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0273 秒)
Laya_社区(1118) Laya2.0_文档(59) Laya3.0_文档(57) Laya2.0_示例(27) Laya_示例(24) Laya3.0_api(17) laya_api(1) Laya2.0_api(1)
...的二进制数组ByteArray,功能完善,api操作简单易懂,因此Laya的Byte在参考ByteArray的同时承接了html5的TypedArray类型化数组的特点。下面看下主要的用法 ### 常用方法 - 构造方法 #### 参数: `length` :长度 当传入length参数时,一个内部数...
来源: Laya2.0_文档 发布时间: 20210714
...e 执行后会有onAwake let t = new tt(); Laya.Scene.root.addChild(t); } } //激活启动类 new Main(); class tt extends Laya.Node{ constructor(){ super(); } public onAwake():void{ console.log(1111); ...
来源: Laya_社区 发布时间: 20190701
...定义组件脚本,脚本内容如下: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一...
来源: Laya3.0_文档 发布时间: 20251010
Laya.loader.create 加载进度问题 我用Laya.loader.create加载.lh模型, function ModelManager() { Laya.loader.create("res/Pipe/Pipe/a.lh", Laya.Handler.create(this, this.onCreateComplete()),Laya.Handler.create(this, this.onAssetsLoading)); } ModelManager.prototype.onCreateComplete = functi...
来源: Laya_社区 发布时间: 20180514
...ion(){ socket.emit('foo', 'enenen'); }); }); </script> </html> laya的 Laya.init(800,600,Laya.WebGL); // var socket = io.connect('10.10.1.103:8081'); this.byte = new Laya.Byte(); this.byte.endian = Laya.Byte.LITTLE_ENDIAN; this.socket = new Laya.Socket(); this.socket.endian = Laya.Byte.L...
来源: Laya_社区 发布时间: 20180509
Laya.Byte使用getUint16读取错误 var bytes1 = new Laya.Byte([0,8]); console.log('++',bytes1.getUint8(),bytes1.getUint8()); var bytes2 = new Laya.Byte([0,8]); console.log('++',bytes2.getUint16()); var bytes3 = new Laya.Byte([0,8,0,0]); console.log('++',bytes3.getUint32()); 采用上面测试...
来源: Laya_社区 发布时间: 20180625
Layabox web 复制一段文字到剪贴板 发布h5版本,在微信浏览器上实现复制一段文字到剪贴板 layabox ts版本 实现方法详细步骤(本人没做过web开发,小白一个) function copyText(str) { //实现... } 2018-12-14 添加评论 已悬赏50元 --> 分享 微博...
来源: Laya_社区 发布时间: 20181214
... 无法设置otherbody 动态生成预制体组件,要将预制体设置Laya.RopeJoint的otherbody属性,怎么设置怎么失败。 import UIcontrol from "./UIcontrol"; /** * * @ author:shiguanqing * @ email:0110110110@qq.com * @ data: 2022-04-09 15:53 */ export default class fruit extends La...
来源: Laya_社区 发布时间: 20220413
...的二进制数组ByteArray,功能完善,api操作简单易懂,因此Laya的Byte在参考ByteArray的同时承接了html5的TypedArray类型化数组的特点。下面看下主要的用法 ### 常用方法 - 构造方法 #### 参数: `length` :长度 当传入length参数时,一个内部数...
来源: Laya2.0_文档 发布时间: 20210715
layacmd mac 系统安装不上,急 p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'Andale Mono'; color: #28fe14; background-color: #000000; background-color: rgba(0, 0, 0, 0.9)} span.s1 {font-variant-ligatures: no-common-ligatures} yaotekejirigala:~ root# npm install layacmd -g/usr/local/bin...
来源: Laya_社区 发布时间: 20180508