大约有 339 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0068 秒)
... NumberX锚点,值为0-1,设置anchorX值最终通过pivotX值来改变节点轴心点。View anchorY : NumberY锚点,值为0-1,设置anchorY值最终通过pivotY值来改变节点轴心点。View autoDestroyAtClosed : Boolean = false场景被关闭后,是否自动销毁(销毁节点...
来源: Laya2.0_api 发布时间: 20190513
... autoDestoryAtClosed 弹窗视图被关闭后,是否自动销毁(销毁节点和使用到的资源),默认为false,此属性由场景类继承而来。 拖动区域 dragArea 拖动区域(格式:x,y,width,height),默认值为"0,0,0,0" 模式窗口 isModal 是否是模式窗口,默...
来源: Laya3.0_文档 发布时间: 20251024
...herited from Text._skinBaseUrl Defined in laya/display/Sprite.ts:276 如果节点需要加载相关的皮肤,但放在不同域,这里可以设置 Optional _url _url: string Inherited from Node._url Defined in laya/display/Node.ts:55 autoHide autoHide: boolean = false Inherited from ScrollBar.au...
来源: Laya3.0_api 发布时间: 20231115
...herited from Text._skinBaseUrl Defined in laya/display/Sprite.ts:276 如果节点需要加载相关的皮肤,但放在不同域,这里可以设置 Optional _url _url: string Inherited from Node._url Defined in laya/display/Node.ts:55 autoHide autoHide: boolean = false Inherited from ScrollBar.au...
来源: Laya3.0_api 发布时间: 20231115
...a.Clip }) public clip: Laya.Clip; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.clip.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); // 位置 this.clip.skin = "atlas/comp/clip_num.png"; // 皮肤 this.cli...
来源: Laya3.0_文档 发布时间: 20251010
...eton Defined in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 owner owner: Node Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Compone...
来源: Laya3.0_api 发布时间: 20231115
...eton Defined in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 color color: Color Inherited from Light.color Defined in laya/d3/core/light/Light.ts:61 灯光颜色。 owner owner: Node Inherited from Component.owner Defined in laya/components/Co...
来源: Laya3.0_api 发布时间: 20231115
... 二、IDE中创建与使用 2.1添加2D线渲染器组件 选中一个2D节点,在属性设置面板中为节点增加一个2D线渲染器组件(Line2DRender)。 (图2-1-1) 组件添加到节点上后,默认会创建好一个线段。 2.2属性设置 如图2-2-1所示,2D线渲染器上有...
来源: Laya3.0_文档 发布时间: 20251010
... public hscroll: Laya.HScrollBar; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.hscroll.skin = "atlas/comp/hscroll.png";//滚动条皮肤 this.hscroll.width = 300;//滚动条的宽度 this.hscroll.pos(300, 300);//滚动...
来源: Laya3.0_文档 发布时间: 20251010
...3 相机跟随玩家运动2D相机 2D相机是应用于2D场景中的相机节点。它会使场景中被渲染的区域跟随该节点移动。通过2D相机,开发者可以方便快捷的实现许多游戏效果,例如滚动场景、视角跟随角色移动等。 一、创建2D相机 需要说...
来源: Laya3.0_文档 发布时间: 20251010