大约有 4 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0027 秒)
...的效果。 二、在LayaAir-IDE中使用 在LayaAir-IDE中,创建一个sprite,在sprite上添加2D网格渲染器组件,如动图2-1所示。 (动图2-1) 添加后的组件属性如图2-2所示, (图2-2) 其中渲染图层和接受光照属性都与光照相关,具体用法参考...
来源: Laya3.0_文档 发布时间: 20251120
...egClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { //...
来源: Laya3.0_文档 发布时间: 20251010
...egClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { //...
来源: Laya3.0_文档 发布时间: 20251010
...regClass() export class Script1 extends Laya.Script { declare owner : Laya.Sprite3D; } //TestCustomEditor.ts @IEditorEnv.customEditor(Script1) export class TestCustomEditor extends IEditorEnv.CustomEditor { declare owner: Laya.Sprite3D; onSceneGUI(): void { IEditorEnv.Handles.drawHemiSphere(this.own...
来源: Laya3.0_文档 发布时间: 20251010