Options
All
  • Public
  • Public/Protected
  • All
Menu

A behavior that when attached to a mesh will will place a specified node on the meshes face pointing towards the camera

Hierarchy

  • AttachToBoxBehavior

Implements

Index

Constructors

  • Creates the AttachToBoxBehavior, used to attach UI to the closest face of the box to a camera

    Parameters

    • _ui: TransformNode

      The transform node that should be attached to the mesh

    Returns AttachToBoxBehavior

Properties

distanceAwayFromBottomOfFace: number

The distance from the bottom of the face that the UI should be attached to (default: 0.15)

distanceAwayFromFace: number

The distance away from the face of the mesh that the UI should be attached to (default: 0.15)

name: string

The name of the behavior

Methods

  • attach(target: Mesh): void
  • Attaches the AttachToBoxBehavior to the passed in mesh

    Parameters

    • target: Mesh

      The mesh that the specified node will be attached to

    Returns void

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

    Returns void

  • init(): void
  • Initializes the behavior

    Returns void

Legend

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

Settings

Theme