instead of filling out useful components I'm filling out this one |
m remove stub category. |
||
Line 34: | Line 34: | ||
[[Category:Components:Uncategorized{{#translation:}}|Quaternion Member Editor]] | [[Category:Components:Uncategorized{{#translation:}}|Quaternion Member Editor]] | ||
[[Category:Components{{#translation:}}|Quaternion Member Editor]] | [[Category:Components{{#translation:}}|Quaternion Member Editor]] | ||
Revision as of 20:11, 6 June 2024
Component image
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.
Usage
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. |
Continuous
|
Bool | |
_path
|
String | |
_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> |
Behavior
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.