大约有 6 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0050 秒)
...BatchShader #include "Math.glsl"; #include "Scene.glsl"; #include "SceneFogInput.glsl" #include "Camera.glsl"; #include "Sprite3DVertex.glsl"; #include "VertexCommon.glsl"; #include "PBRVertex.glsl"; varying float spriteCustomData; void main() { Vertex vertex; getVertexParams(vertex); PixelParams pi...
来源: Laya3.0_文档 发布时间: 20251010
输入文本组件(TextInput)1. LayaAir IDE中使用TextInput1.1 创建TextInput1.2 TextInput属性1.3 脚本控制TextInput2. Textinput代码创建输入文本组件(TextInput) 1. LayaAir IDE中使用TextInput 文本输入框是游戏中经常会用到的一个UI组件,任何需要输入的时...
来源: Laya3.0_文档 发布时间: 20251010
...wait gui.UIPackage.createWidget("editorResources/UI/MyWidget.widget"); let input: gui.TextInput = this._panel.getChild("TextInput").getChild("title"); input.on("changed", () => { console.log("改变了!"); }) } } 四、程序化生成界面 4.1 常用方法 除了使用UI编辑器制作界面...
来源: Laya3.0_文档 发布时间: 20251010
... Laya.init(100,100); var file:any = Laya.Browser.document.createElement("input"); file.type = "file"; file.style.position = "absolute"; file.style.zIndex = 999; Laya.Browser.document.body.appendChild(file);//添加到舞台 var fileReader:any = new Laya.Browser.window.FileReader(); file.onchange = f...
来源: Laya3.0_文档 发布时间: 20251010
....readUTFBytes()); } // 清理缓存的服务端发来的数据 this.socket.input.clear(); } // 出现异常后的事件回调 private onConnectError(e: Event = null): void { console.log("error"); } 3.2 Laya.Byte 二进制读写 在开发项目中,二进制的操作是不可或缺的。在html5时...
来源: Laya3.0_文档 发布时间: 20250104
...串数据", msg); } // 清除输入缓存,避免残留数据 this.socket.input.clear(); } /** 连接关闭回调 */ private onSocketClose(e: any): void { console.log("WebSocket 连接已关闭", e); } /** 连接错误回调 */ private onConnectError(e: any): void { console.error("WebSocket 连接...
来源: Laya3.0_文档 发布时间: 20251010