FadeInOutBehavior

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

Hierarchy

  • FadeInOutBehavior

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

delay

delay: number

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

fadeInTime

fadeInTime: number

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

name

name: string

The name of the behavior

Methods

attach

  • 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

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

    Returns void

fadeIn

  • 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

  • init(): void
  • Initializes the behavior

    Returns void

Generated using TypeDoc