Interface IManipulator
Gives decorated class access to the GameObject over which a particular ray is hovering
Namespace: UnityEditor.Experimental.EditorVR
Syntax
public interface IManipulator
Properties
dragging
Bool denoting the drag-state of a manipulator that implements this interface
Declaration
bool dragging { get; }
Property Value
Type | Description |
---|---|
Boolean |
rotate
Delegate that processes the rotation, using the quaternion passed in
Declaration
Action<Quaternion, Transform> rotate { set; }
Property Value
Type | Description |
---|---|
Action<Quaternion, Transform> |
scale
Delegate that processes the scale, using the vector3 passed in
Declaration
Action<Vector3> scale { set; }
Property Value
Type | Description |
---|---|
Action<Vector3> |
translate
Delegate that processes the translation, using the vector3 passed in Caller also provides the ray origin that is doing the action, and which axes are constrained, if any
Declaration
Action<Vector3, Transform, AxisFlags> translate { set; }
Property Value
Type | Description |
---|---|
Action<Vector3, Transform, AxisFlags> |
Events
dragEnded
Delegate that is called once after every drag ends
Declaration
event Action<Transform> dragEnded
Event Type
Type | Description |
---|---|
Action<Transform> |
dragStarted
Delegate that is called once after every drag starts
Declaration
event Action dragStarted
Event Type
Type | Description |
---|---|
Action |