Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TransformBase

Hierarchy

Index

Constructors

constructor

Properties

Readonly entity

entity: Entity

Readonly id

id: number = ...

Readonly isDestroyed

isDestroyed: boolean = false

Readonly isDestroying

isDestroying: boolean = false

Readonly priority

priority: number = ...

Static Priority

Priority: { Align: number; Layout: number; Low: number; Physics: number; Render: number; Tool: number } = ...

Type declaration

  • Align: number
  • Layout: number
  • Low: number
  • Physics: number
  • Render: number
  • Tool: number

Static Optional Serialize

Serialize: (...args: any[]) => any

Type declaration

    • (...args: any[]): any
    • Parameters

      • Rest ...args: any[]

      Returns any

Accessors

active

  • get active(): boolean
  • set active(value: boolean): void
  • 组件本身是否active

    overload
    memberof

    Component

    Returns boolean

  • 组件本身是否active

    Parameters

    • value: boolean

    Returns void

activeInHierarchy

  • get activeInHierarchy(): boolean
  • 在场景树中是否active

    readonly
    memberof

    Component

    Returns boolean

activeInHierarchyChangedEvent

  • get activeInHierarchyChangedEvent(): Emitter<void, void>
  • active状态变更事件监听器

    memberof

    TransformBase

    Returns Emitter<void, void>

childChangeEvent

children

  • Returns TransformBase[]

childrenCount

  • get childrenCount(): number
  • 子节点数量

    readonly
    memberof

    TransformBase

    Returns number

parent

  • 父节点

    readonly
    memberof

    TransformBase

    Returns TransformBase

worldMatrixDirtyEvent

  • get worldMatrixDirtyEvent(): Emitter<void, void>
  • 世界矩阵变更事件监听器

    memberof

    TransformBase

    Returns Emitter<void, void>

Methods

destroy

  • destroy(): void
  • Returns void

findChildByName

  • 找子节点
    create by clairli

    Parameters

    • childName: string

    Returns TransformBase

getSiblingIndex

  • getSiblingIndex(): number
  • 获取同级索引

    memberof

    TransformBase

    Returns number

getTypeName

  • getTypeName(): string

Abstract immovableAfter

  • 在当前节点后插入新的节点, 新插入的节点世界矩阵不变

    memberof

    TransformBase

    Parameters

    Returns boolean

    是否插入成功

Abstract immovableAppendTo

  • 把当前节点添加到指定的parent节点里,作为其子节点。 当前节点世界矩阵不变

    memberof

    TransformBase

    Parameters

    Returns boolean

    是否插入成功

Abstract immovableBefore

  • 在当前节点前插入新的节点, 新插入的节点世界矩阵不变

    memberof

    TransformBase

    Parameters

    Returns boolean

    是否插入成功

isDetached

  • isDetached(): boolean
  • Returns boolean

resetProperties

  • resetProperties(): void

setSiblingIndex

  • setSiblingIndex(index: number): void
  • 设置同级索引

    memberof

    TransformBase

    Parameters

    • index: number

      同级索引序号

    Returns void

travelChild

  • 遍历子节点

    memberof

    TransformBase

    Parameters

    Returns void

Generated using TypeDoc