大约有 356 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0046 秒)
Laya_社区(99) Laya_示例(78) Laya2.0_示例(68) Laya3.0_api(55) Laya2.0_文档(35) Laya3.0_文档(10) laya_api(6) Laya2.0_api(5)
...onSelect); Laya.stage.addChild(tab); return tab; } private onSelect(index: number): void { console.log("当前选择的标签页索引为 " + index); } } } new laya.UI_Tab();package { import laya.display.Stage; import laya.ui.Tab; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_T...
来源: Laya_示例 发布时间: 20251130
... //设置模糊的参数 var downSampleFactor:number = 2; var downSampleWidth:number = viewPort.width/downSampleFactor; var downSampleheigh:number = viewPort.height/downSampleFactor; var texSize:Laya.Vector4 =...
来源: Laya_社区 发布时间: 20210203
...为列表定义一个回调函数,例如: function renderListItem(index:number, obj:GButton) { obj.title = "" + index; } 如果使用了对象池,意回调函数可能为同一个对象重复调用,所以在回调函数里注册事件侦听需要非常小心,避免使用临时函数,造成...
来源: Laya3.0_文档 发布时间: 20251128
...onSelect); Laya.stage.addChild(tab); return tab; } private onSelect(index: number): void { console.log("当前选择的标签页索引为 " + index); } } } new laya.UI_Tab();package { import laya.display.Stage; import laya.ui.Tab; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_T...
来源: Laya2.0_示例 发布时间: 20251130
...atic createFromMeshAndHeightMap(mesh: Mesh, texture: Texture2D, minHeight: number, maxHeight: number, name: string = null): MeshTerrainSprite3D { var meshTerrainSprite3D: MeshTerrainSprite3D = new MeshTerrainSprite3D(mesh, null, name); meshTerrainSprite3D._initCreateFromMeshHeightMap(texture, minHei...
来源: Laya3.0_文档 发布时间: 20230303
...output.writeByte发送 var message: string = "demonstrate "; for (var i: number = 0; i "); // 使用output.writeByte发送 var message:String = "demonstrate "; for (var i:int = 0; i < message.length; ++i) { output.writeByte(message.charCodeAt(i)); } socket.flush(); } private function onSocketClose(e...
来源: Laya2.0_示例 发布时间: 20251130
..."#5D0776", "#EC8A49", "#AF3666", "#F6C84C", "#4C779A"]; private colorCount:number = 0; private isDown:Boolean = false; private path:Array = []; private color:String = this.colors[0]; private liveGraphics:Graphics; private canvasGraphics:Graphics; constructor() { Laya.init(Browser.width, Browser.heig...
来源: Laya_示例 发布时间: 20251130
微信小游戏编译出错 gameThirdScriptError Unexpected number in JSON at position 1;at api readFile success callback function SyntaxError: Unexpected number in JSON at position 2018-06-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20180608
...ivate _quaternion: Laya.Quaternion = new Laya.Quaternion(); private index: number = 0; private curPathIndex: number = 0; private nextPathIndex: number = 1; private moveSprite3D: Laya.Sprite3D; private pointCount: number = 10; private scene: Laya.Scene; constructor() { Laya3D.init(0, 0, true); Laya.s...
来源: Laya_示例 发布时间: 20251130
...de:any = xml.firstChild; var nodes:Array = rootNode.childNodes; for (var i:number = 0; i item aitem bsomethis..."; var xmlValue:String = "item aitem bsomethings..."; proessXML(xmlValueContainsError); trace("\n"); proessXML(xmlValue); } // 使用xml private function proessXML(source:String):void { tr...
来源: Laya_示例 发布时间: 20251130