大约有 1,873 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0070 秒)
Laya_社区(617) Laya3.0_api(529) Laya2.0_api(242) laya_api(178) Laya2.0_文档(88) Laya_示例(78) Laya3.0_文档(73) Laya2.0_示例(68)
..."#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...
来源: Laya2.0_示例 发布时间: 20260303
...个是Timer里自己管理的Handler。 比如我们使用Timer loop(delay:number,caller:any,method:Function,args?:any[],coverBefore?:boolean,jumpFrame?:boolean):void;这个函数开启一个游戏主循环,这是如果caller.$_GID是1,method.$_TID是500000,那么this._map会存入一个500001...
来源: Laya_社区 发布时间: 20210701
...现这一步在init的时候就完成了 * */ async updateAll(progress:(p:number)=>void); /** * 根据指定的zip文件更新本地缓存。 * 这个zip文件可以通过DCC插件的补丁生成工具来生成。 * * 这个会修改本地保存的root * @param zipfile 打补丁的zip文件,注...
来源: Laya3.0_文档 发布时间: 20251010
...cte); } /**根据选择tab的索引切换页面**/ private onSelecte(index:number):void{ //切换ViewStack子页面 this.comp.viewStack.selectedIndex=index; } } new ComponentDemo(); ``` 运行示例代码,效果如动图10所示。 (动图10)
来源: Laya2.0_文档 发布时间: 20210715
... var a:int = this.byte.getByte(); var b:int = this.byte.getInt16(); var c:Number = this.byte.getFloat32(); var d:String = this.byte.getString(); var e:String = this.byte.getUTFString(); } ```
来源: Laya2.0_文档 发布时间: 20210715
...onSelect); this.owner.addChild(tab); return tab; } private onSelect(index: number): void { console.log("当前选择的标签页索引为 " + index); } } 运行效果如下动图所示: (动图2-1) Copyright ©Layabox 2026 all right reserved,powered by LayaAir Engine更新时间: 2025-10-1...
来源: Laya3.0_文档 发布时间: 20251010
...e: layaair2-cmd [command] [args] Options: -v, --version output the version number -h, --help output usage information Commands: compile compile project. publish publish project. help [cmd] display help for [cmd] ``` #### layaair2-cmd的帮助说明: 帮助中首先给出了命令的使用范例:...
来源: Laya2.0_文档 发布时间: 20210715
.../res/ui/combobox.png";//资源来自“引擎API使用示例” pageWidth: number; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skin).then(() => { let ComboBox: Laya.ComboB...
来源: Laya3.0_文档 发布时间: 20251010
...t point2 = this.arr[1].transform.position; let angle: number = Math.atan2((point2.x - point1.x), (point2.z - point1.z)) * (180 / Math.PI); //角度 this.arr[0].transform.localRotationEulerY = angle; console.log("position = ",this.a...
来源: Laya_社区 发布时间: 20201120
...declare owner: Laya.Sprite; line2DRender: Laya.Line2DRender; lastMousePos: number[] = []; isDrawing: boolean = false; // 标记是否正在绘制 // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onEnable(): void { // 添加2D线渲染器组件 th...
来源: Laya3.0_文档 发布时间: 20251010