FirstModulAR 0.1.0
Loading...
Searching...
No Matches
FMAR.Demos.DraggableAnchors.DraggableAnchor Class Reference

Anchor that can be dragged around using controllers/hands when in edit mode. More...

Inheritance diagram for FMAR.Demos.DraggableAnchors.DraggableAnchor:

Public Member Functions

void SetEditMode (bool isEditMode)
 Toggles the edit mode state.
 
void SetGuid (string guid)
 Sets the unique identifier for the anchor.
 
void SetAnchorPositionAndRotation (FMARAnchor anchor)
 Updates the anchor's position and rotation based on the provided FMARAnchor.
 
void ResetToStartPosition ()
 Resets the anchor to its initial position and rotation.
 

Public Attributes

bool lockRotationX
 
bool lockRotationY
 
bool lockRotationZ
 
Vector3 lockedRotation
 
Action< Vector3, Quaternion > onSet
 

Properties

string StringId [get]
 
string AnchorGuid [get]
 
bool IsEditMode [get]
 

Detailed Description

Anchor that can be dragged around using controllers/hands when in edit mode.

Member Function Documentation

◆ ResetToStartPosition()

void FMAR.Demos.DraggableAnchors.DraggableAnchor.ResetToStartPosition ( )
inline

Resets the anchor to its initial position and rotation.

◆ SetAnchorPositionAndRotation()

void FMAR.Demos.DraggableAnchors.DraggableAnchor.SetAnchorPositionAndRotation ( FMARAnchor anchor)
inline

Updates the anchor's position and rotation based on the provided FMARAnchor.

Parameters
anchorThe FMARAnchor containing the new position and rotation.

◆ SetEditMode()

void FMAR.Demos.DraggableAnchors.DraggableAnchor.SetEditMode ( bool isEditMode)
inline

Toggles the edit mode state.

Parameters
isEditModeTrue to enable edit mode, false to disable.

◆ SetGuid()

void FMAR.Demos.DraggableAnchors.DraggableAnchor.SetGuid ( string guid)
inline

Sets the unique identifier for the anchor.

Parameters
guidThe GUID to assign.

Member Data Documentation

◆ lockedRotation

Vector3 FMAR.Demos.DraggableAnchors.DraggableAnchor.lockedRotation

◆ lockRotationX

bool FMAR.Demos.DraggableAnchors.DraggableAnchor.lockRotationX

◆ lockRotationY

bool FMAR.Demos.DraggableAnchors.DraggableAnchor.lockRotationY

◆ lockRotationZ

bool FMAR.Demos.DraggableAnchors.DraggableAnchor.lockRotationZ

◆ onSet

Action<Vector3, Quaternion> FMAR.Demos.DraggableAnchors.DraggableAnchor.onSet

Property Documentation

◆ AnchorGuid

string FMAR.Demos.DraggableAnchors.DraggableAnchor.AnchorGuid
get

◆ IsEditMode

bool FMAR.Demos.DraggableAnchors.DraggableAnchor.IsEditMode
get

◆ StringId

string FMAR.Demos.DraggableAnchors.DraggableAnchor.StringId
get

The documentation for this class was generated from the following file: