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

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

261. UI-Tab [ 60%]

...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

262. CommandBuffer_Outline 每次 addCommandBuffer都会永久增加10Gpu,removed掉相机事件也不会减少 [ 60%]

...     //设置模糊的参数          var downSampleFactor:number = 2;          var downSampleWidth:number = viewPort.width/downSampleFactor;          var downSampleheigh:number = viewPort.height/downSampleFactor;         var texSize:Laya.Vector4 =...

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

263. 列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 59%]

...为列表定义一个回调函数,例如: function renderListItem(index:number, obj:GButton) { obj.title = "" + index; } 如果使用了对象池,意回调函数可能为同一个对象重复调用,所以在回调函数里注册事件侦听需要非常小心,避免使用临时函数,造成...

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

264. UI-Tab [ 59%]

...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

265. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 59%]

...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

266. 网络和格式-Socket [ 58%]

...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

267. 其他引擎的Demo-Example_21 [ 58%]

..."#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

268. 微信小游戏编译出错 [ 58%]

微信小游戏编译出错 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

269. 高级应用-寻路导航 [ 58%]

...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

270. 网络和格式-XML [ 58%]

...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