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

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

1811. 其他引擎的Demo-Example_21 [ 39%]

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

1812. Timer Handler被覆盖 [ 39%]

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

1813. 缓存工具-layadcc · LayaAir3.4 · 引擎文档 · LAYABOX [ 39%]

...现这一步在init的时候就完成了 * */ async updateAll(progress:(p:number)=>void); /** * 根据指定的zip文件更新本地缓存。 * 这个zip文件可以通过DCC插件的补丁生成工具来生成。 * * 这个会修改本地保存的root * @param zipfile 打补丁的zip文件,注...

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

1814. ViewStack属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 39%]

...cte); } /**根据选择tab的索引切换页面**/ private onSelecte(index:number):void{ //切换ViewStack子页面 this.comp.viewStack.selectedIndex=index; } } new ComponentDemo(); ``` 运行示例代码,效果如动图10所示。 ![动图10](img/1.gif)(动图10)

来源: Laya2.0_文档 发布时间: 20210715

1815. WebSocket发送与接收数据(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 39%]

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

1816. 导航标签组组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 38%]

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

1817. 项目发布详解(含命令行发布)(TypeScript-IDE篇(TS)-代码模式基础) [ 38%]

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

1818. 下拉选项框组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 38%]

.../res/ui/combobox.png";//资源来自“引擎API使用示例” pageWidth: number; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skin).then(() => { let ComboBox: Laya.ComboB...

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

1819. localRotationEulerY旋转位置错误 [ 38%]

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

1820. 2D线渲染器 · LayaAir3.4 · 引擎文档 · LAYABOX [ 38%]

...declare owner: Laya.Sprite; line2DRender: Laya.Line2DRender; lastMousePos: number[] = []; isDrawing: boolean = false; // 标记是否正在绘制 // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onEnable(): void { // 添加2D线渲染器组件 th...

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