大约有 444 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0061 秒)
...目开发经验; 2、熟悉Cocos2d-x开发,熟悉Python/Lua或其它脚本语言; 3、有图形、图像及用户界面开发经验; 4、熟悉网络编程,熟悉常用的数据结构和算法; 5、能无障碍阅读英文技术文档,有独立钻研新技术的热情和能力...
来源: Laya_社区 发布时间: 20201022
...插件”,如图3-1所示。 (图3-1) 然后在IDE中,创建一个脚本文件,命名为TestLib.ts,添加如下代码: interface ITestLib { nativeAdd(a: number, b: number): number; } export const testLib: ITestLib = Laya.importNative("LayaExt.dll"); 接着在组件脚本Main.ts中添...
来源: Laya3.0_文档 发布时间: 20251010
...s/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 owner owner: Node Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Component.runInEditor Defined in laya...
来源: Laya3.0_api 发布时间: 20231115
...组成:列表渲染项(单元格)、滚动条。 List 组件的脚本接口请参考 [List API](https://layaair2.ldc2.layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=UI&class=laya.ui.List)。 ### 1.1 创建 List 组件 #### 1.编辑列表项。 列表项可以是...
来源: Laya2.0_文档 发布时间: 20210714
...问题 目前使用的是LayaAir2.0版本做的以下内容. 我在一个脚本里继承了Laya.Script然后写了以下方法: 主要目的就是做射线碰撞检测. onStageMouseDown(): void { this._rayPt.x = Laya.MouseManager.instance.mouseX; this._rayPt.y = Laya.MouseManager.instance.mouseY; Ga...
来源: Laya_社区 发布时间: 20190319
...s/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 cullingMode cullingMode: number = Animator.CULLINGMODE_CULLCOMPLETELY Defined in laya/d3/component/Animator/Animator.ts:78 裁剪模式 owner owner: Node Inherited from Component.owner Defined in laya/components/...
来源: Laya3.0_api 发布时间: 20231115
...主线程ui 必须发送new Runnable() { public void run() { ......执行脚本}} 发送请求才能进行刷新ui 2019-05-22 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 你快一点儿 相关问题 看了其他引擎才发现 LAYA ...
来源: Laya_社区 发布时间: 20190522
...代码*****,需增加private _chain; } /**开始游戏,通过激活本脚本方式开始游戏*/ startGame(): void { if (!this._started) { this._started = true; this.enabled = true; } var ground=this.owner.getChildByName("ground"); //****新增代码*****, ground.addComponent...
来源: Laya_社区 发布时间: 20181130
...ation(1000).to("x", 500).to("y", 300); 将这段代码添加在节点上的脚本中,运行查看效果,如图3-1-1所示: (图3-1-1) 下面我们来讲解一下这段代码: 1. 使用create()方法创建一个缓动,此方法可以传入缓动的目标对象作为参数: /** * @zh ...
来源: Laya3.0_文档 发布时间: 20251010
...s/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 owner owner: Node Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Component.runInEditor Defined in laya...
来源: Laya3.0_api 发布时间: 20231115