大约有 339 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0052 秒)
...ouseScript() {} /** * 覆写3D对象组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ override public function onAwake():void{ //获取脚本的拥有者 meshsp = this.owner as MeshSprite3D; } //物体必须拥有碰撞组件(Collider) //当...
来源: Laya2.0_文档 发布时间: 20210715
...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
... ```typescript /** * 创建后只执行,只会执行一次,此时所有节点和组件以及创建完毕 */ onAwake() {} /** * 脚本每次启动后执行,例如被添加到一个激活的对象上或者设置脚本的enabled = true */ onEnable() {} /** * 第一次执行update之前执行,只...
来源: Laya2.0_文档 发布时间: 20210714
...将刚刚设置过九宫格的背景图拖拽到场景中,然后创建子节点ViewStack页面,再将页面中涉及的UI基础组件拖拽到ViewStack组件下,作为其子页面,并调整页面的UI布局。 (图1-3) ViewStack组件是容器类组件,没有独立的组件资源规范...
来源: Laya3.0_文档 发布时间: 20251010
...t; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.txtin.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.txtin.size(500, 60); //大小 this.txtin.pivot(this.tx...
来源: Laya3.0_文档 发布时间: 20251010
... PerfHUD, Scene, Stage, Text Sprite 是基本的显示图形的显示列表节点。 Sprite 默认没有宽高,默认不接受鼠标事件。通过 graphics 可以绘制图片或者矢量图,支持旋转,缩放,位移等操作。Sprite同时也是容器类,可用来添加多个子节点。...
来源: Laya2.0_api 发布时间: 20190513
...eton Defined in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 canScaleShape canScaleShape: boolean = true Inherited from CannonPhysicsTriggerComponent.canScaleShape Defined in laya/d3/physicsCannon/CannonPhysicsComponent.ts:191 是否可以缩...
来源: Laya3.0_api 发布时间: 20231102
...如动图2所示 (动图2) Dialog的弹窗效果需要将它作为根节点使用,可以在项目面板鼠标右键单击assets,找到Create,点击Prefab 2D,右键单击View,点击Change Type点击UI,点击Dialog即可创建完毕,如图3、动图4所示。创建完毕之后,需...
来源: Laya3.0_文档 发布时间: 20230303
...e/BatchRender" BatchRender Class BatchRender 类用来描述合批的渲染节点 Hierarchy BaseRender BatchRender StaticInstanceBatchRender StatiVertexMergeBatchRender Implements IBoundsCell Index Constructors constructor Properties _extra _receiveShadow _singleton owner runInEditor scriptPath sort...
来源: Laya3.0_api 发布时间: 20231115
...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