大约有 440 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0045 秒)
...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
...外还有一个问题就是,2.0正式版的2D官方demo,在游戏控制脚本(即GameControl)未被激活的情况下,执行了onEnable和onStart里面的内容,onUpdate是正常没执行的。换成2.0测试版(即beta4)的库后是正常的。怀疑是2.0正式版的库存在问题...
来源: Laya_社区 发布时间: 20181106
...戏的地图,但是在试着导入游戏阶段报错。 以下是导入脚本。 this.map=new Laya.TiledMap(); this.map.createMap("res/map/map.json",new Laya.Rectangle(0,0,Laya.Browser.width,Laya.Browser.height), Laya.Handler.create(this,this.onLoaded));报错的地方为:laya.tiledmap.js第178...
来源: Laya_社区 发布时间: 20161224