class MAGES::Experimental::SceneGraph::HoldBehavior¶
Overview¶
The behavior for the Hold action. More…
class HoldBehavior: public MAGES::SceneGraph::BaseBehavior { public: // enums enum HoldMethodEnum; // properties string ToolName; HoldMethodEnum HoldMethod; float HoldTime; bool ResetTimerOnDeselect; UnityEvent OnHeld; };
Inherited Members¶
public:
// properties
string ObjectID;
BaseActionData ActionData;
Detailed Documentation¶
The behavior for the Hold action.
Properties¶
string ToolName
Gets or sets the name of the tool interactor.
HoldMethodEnum HoldMethod
Gets or sets specifies which hand(s) or tool interactor is used to perform the hold action.
float HoldTime
Gets or sets the required duration in seconds that the object must be held for.
bool ResetTimerOnDeselect
Gets or sets a value indicating whether should the timer reset when the object is deselected.
UnityEvent OnHeld
Gets the on triggered event.