Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Properties

HorizontalAnchor: { NONE: number; PROPORTIONAL: number; WINDOW_LEFT: number; WINDOW_RIGHT: number } = ...

Type declaration

  • NONE: number
  • PROPORTIONAL: number
  • WINDOW_LEFT: number
  • WINDOW_RIGHT: number
VerticalAnchor: { NONE: number; PROPORTIONAL: number; WINDOW_BOTTOM: number; WINDOW_TOP: number } = ...

Type declaration

  • NONE: number
  • PROPORTIONAL: number
  • WINDOW_BOTTOM: number
  • WINDOW_TOP: number
name: string
type: string

Methods

  • activate(enable: boolean): void
  • activated(): boolean
  • getName(): string
  • getNameId(): number
  • onActivate(): void
  • onCreated(): void
  • onDeActivate(): void
  • onDestroy(): void
  • This method is called when the owner of the behavior is being removed from the scene and is about to be destroyed/reused later or when the behavior is removed from an object (can happen in case of hot-reloading only. Otherwise, behaviors are just de-activated, not removed. See onDeActivate).

    Returns void

  • onObjectHotReloaded(): void
  • updateFromBehaviorData(oldBehaviorData: any, newBehaviorData: any): boolean
  • usesLifecycleFunction(): boolean
  • Should return false if the behavior does not need any lifecycle function to be called. Default, hidden, "capability" behaviors set it to false. This avoids useless calls to empty lifecycle functions, which would waste CPU time (and have a sizeable impact for example when lots of static instances are living in the scene).

    Returns boolean

Constructors

Generated using TypeDoc