Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FadeInOutBehavior

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

constructor

  • Instantiates the FadeInOutBehavior

    Returns FadeInOutBehavior

Properties

delaySearch playground for delay

delay: number

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

fadeInTimeSearch playground for fadeInTime

fadeInTime: number

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

Accessors

name

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

    Returns string

Methods

attachSearch playground for 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

detachSearch playground for detach

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

    Returns void

fadeInSearch playground for 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

initSearch playground for init

  • init(): void
  • Initializes the behavior

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method