Options
All
  • Public
  • Public/Protected
  • All
Menu

The DraggableRuntimeBehavior represents a behavior allowing objects to be moved using the mouse.

Hierarchy

Index

Methods

  • activate(enable: boolean): void
  • activated(): boolean
  • enableSynchronization(enable: boolean): void
  • getName(): string
  • getNameId(): number
  • getNetworkSyncData(): BehaviorNetworkSyncData
  • isDragged(): boolean
  • isSyncedOverNetwork(): boolean
  • onActivate(): void
  • onCreated(): void
  • onDeActivate(): void
  • onDestroy(): void
  • onObjectHotReloaded(): void
  • updateFromBehaviorData(oldBehaviorData: any, newBehaviorData: any): boolean
  • updateFromNetworkSyncData(networkSyncData: BehaviorNetworkSyncData): void
  • 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

  • wasJustDropped(): boolean

Constructors

Properties

name: string
type: string

Generated using TypeDoc