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

Find examples in Playground

Properties

delay

Find examples in Playground
delay: number

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

fadeInTime

Find examples in Playground
fadeInTime: number

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

name

Find examples in Playground
name: string

The name of the behavior

Methods

attach

Find examples in Playground
  • 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

Find examples in Playground
  • detach(): void
  • Detaches the behavior from the mesh

    Returns void

fadeIn

Find examples in Playground
  • 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

Find examples in Playground
  • init(): void
  • Initializes the behavior

    Returns void

Generated using TypeDoc