Component:QuaternionMemberEditor

From Resonite Wiki
Component image 
Quaternion Member Editor component as seen in the Scene Inspector

The QuaternionMemberEditor component is a low-level component for use in editing FloatQ elements as XYZ Euler angles in degrees. It is used, for example, in the ProtoFlux input node for FloatQ values.

This can be used for Ref Hacking, and isn't meant to really be used by the user due to being in uncategorized. use at your own risk.

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't.
Continuous Bool Whether changes update a value instantly.
_path String see Ref Hacking. essentially accesses a member underneath another one. for example, "x" will access the x element of a Float3, Float2, Float4, or FloatQ.
_target direct RelayRef`1<IField> Target field, which should be a FloatQ.
Vertical Bool Whether the target UI is a vertical layout, as opposed to a horizontal layout.
_xEditor direct RelayRef`1<TextEditor> TextEditor for the X field.
_yEditor direct RelayRef`1<TextEditor> TextEditor for the Y field.
_zEditor direct RelayRef`1<TextEditor> TextEditor for the Z field.
_xDrive field drive of String Field to be driven by the X angle. Should be the Content field on the Text component that _xEditor is pointing to.
_yDrive field drive of String Field to be driven by the Y angle.
_zDrive field drive of String Field to be driven by the Z angle.
_xButton Button Button whose sync delegates are attached to the _xEditor
_yButton Button Button whose sync delegates are attached to the _yEditor
_zButton Button Button whose sync delegates are attached to the _zEditor
_editingValue Nullable`1<Double3> The value that the user is currently entering at it's current editing state. updates continuously.

Sync Delegates

Triggers
Method Name Method type and Arguments. Is the method hidden? Description
EditingStarted:Action`1<TextEditor> Action`1<TextEditor>
EditingChanged:Action`1<TextEditor> Action`1<TextEditor>
EditingFinished:Action`1<TextEditor> Action`1<TextEditor>

Usage

This component's behavior is very similar to PrimitiveMemberEditor, but a layer of abstraction exists between the FloatQ field in _target and the text field being driven for each member. This abstraction layer converts to and from Euler angles and quaterion values, which is then used for building a UI to edit quaternions as Euler angles.

Examples

See Also