Options
All
  • Public
  • Public/Protected
  • All
Menu

A behavior that when attached to a mesh will allow the mesh to fade in and out

Hierarchy

  • FadeInOutBehavior

Implements

Index

Constructors

Properties

Accessors

Methods

Constructors

  • Instantiates the FadeInOutBehavior

    Returns FadeInOutBehavior

Properties

delay: number

Time in milliseconds to delay before fading in (Default: 0)

fadeInTime: number

Time in milliseconds for the mesh to fade in (Default: 300)

Accessors

  • get name(): string
  • The name of the behavior

    Returns string

Methods

  • attach(ownerNode: Mesh): void
  • Attaches the fade behavior on the passed in mesh

    Parameters

    • ownerNode: Mesh

      The mesh that will be faded in/out once attached

    Returns void

  • detach(): void
  • Detaches the behavior from the mesh

    Returns void

  • fadeIn(value: boolean): void
  • Triggers the mesh to begin fading in or out

    Parameters

    • value: boolean

      if the object should fade in or out (true to fade in)

    Returns void

  • init(): void
  • Initializes the behavior

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited constructor
  • Static method

Settings

Theme