Class AttachToBoxBehavior
Hierarchy
- AttachToBoxBehavior
Implements
Index
Constructors
Properties
Methods
Constructors
constructor
-
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 attched to the mesh
Returns AttachToBoxBehavior
-
Properties
distance Away From Bottom OfFaceSearch playground for distanceAwayFromBottomOfFace
The distance from the bottom of the face that the UI should be attached to (default: 0.15)
distance Away From FaceSearch playground for distanceAwayFromFace
The distance away from the face of the mesh that the UI should be attached to (default: 0.15)
nameSearch playground for name
The name of the behavior
Methods
attachSearch playground for attach
-
Attaches the AttachToBoxBehavior to the passed in mesh
Parameters
-
target: Mesh
The mesh that the specified node will be attached to
Returns void
-
detachSearch playground for detach
-
Detaches the behavior from the mesh
Returns void
initSearch playground for init
-
Initializes the behavior
Returns void
A behavior that when attached to a mesh will will place a specified node on the meshes face pointing towards the camera