QuaternionEulerField
A Quaternion field that edits the rotation as X, Y and Z euler angles, in degrees. As in the Transform inspector, angles that were not typed in the field are shown between -180 and 180. For more information, refer to UXML element QuaternionEulerField.
Read time 10 minutesLast updated a day ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: BaseCompositeField<Quaternion, FloatField, float>
- Implements: IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, IBindable, IMixedValueSupport, INotifyValueChanged<Quaternion>
[UxmlElement(libraryPath = "Numeric Fields")][Icon("UIToolkit/Icons/QuaternionEulerField.png")]public class QuaternionEulerField : BaseCompositeField<Quaternion, FloatField, float>, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, IBindable, IMixedValueSupport, INotifyValueChanged<Quaternion>
Static Fields
Value | Description |
|---|---|
| inputUssClassName | USS class name of input elements in elements of this type. |
| labelUssClassName | USS class name of labels in elements of this type. |
| ussClassName | USS class name of elements of this type. |
Constructors
Constructor | Description |
|---|---|
| QuaternionEulerField() | Initializes and returns an instance of QuaternionEulerField. |
| QuaternionEulerField(System.String) | Initializes and returns an instance of QuaternionEulerField. |
Methods
Method | Description |
|---|---|
| SetValueWithoutNotify | Sets the value without sending a ChangeEvent<T>. The displayed euler angles only change when the new value is a different rotation. |