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

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

1. 输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 100%]

... 输入框类型,共有十三种类型:text、password、email、url、number、range、date、month、week、time、dateime、dateime—local、search。效果等同HTML的input 字符数量限制 maxchars 最大字符数,默认为100000。设置字符数量限制时,小于等于0的值将...

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

2. 3D性能优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 78%]

...Data.custom_0, colorIndex); } } private _getRandomPosition(positionRanvge: number): Laya.Vector3 { let getRangeRandom = () => { return (Math.random() - 0.5) * positionRanvge; } return new Laya.Vector3(getRangeRandom(), 0.3, getRangeRandom()); } } shader代码如下: Shader3D Start { type:Shader...

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

3. 和原生Dom交互 · LayaAir3.3 · 引擎文档 · LAYABOX [ 56%]

...ntext || Laya.Browser.window.webkitAudioContext)(); //Stereo var channels: number = 2; // Create an empty two-second stereo buffer at the // sample rate of the AudioContext var frameCount: number = audioCtx.sampleRate * 2.0; var myArrayBuffer: any = audioCtx.createBuffer(2, frameCount, audioCtx.samp...

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

4. 网络通信 · LayaAir3文档 · LAYABOX [ 56%]

...用认证信息(例如cookie或授权的header)。 默认为 false timeout number 请求超时时间 2,方法 abort() 如果请求已经被发送,则立刻中止请求。 getAllResponseHeaders() 返回所有响应头信息(响应头名和值), 如果响应头还没接受,则返回null。 getResp...

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

5. 插件开发说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 56%]

...operties : [ { name : "text", type : "string" }, { name : "count" , type: "number" }, { name : "actions", inspector: "Buttons", options : { buttons : [ { caption : "点我", event: "my_click" } ] } } ] } ]); this._panel.allowUndo = true; //根据需要设置 //如果不需要undo功能,也可以...

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

6. WebSocket通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 41%]

...; // 打印解析结果 console.log("Received binary data:"); console.log("Number 1:", num1); console.log("Number 2:", num2); } catch (error) { console.error("Error parsing binary data:", error); } } else { console.log("Received non-binary message:", message); } } private onConnectError(): void { co...

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