![]() | TransformValues Structure |
Namespace: DustProductions.Core
public struct TransformValues : IEquatable<TransformValues>
The TransformValues type exposes the following members.
Name | Description | |
---|---|---|
![]() | TransformValues(Transform) |
Constructor that caches the values of a Transform without creating a GameObject.
|
![]() | TransformValues(TransformValues) |
Constructor that uses another TransformValues as a constructor
|
![]() | TransformValues(Vector3, Quaternion, Vector3) |
Constructor that uses raw values. Assumes this is not storing values of a RectTransform.
|
![]() | TransformValues(Vector3, Quaternion, Vector3, Vector2, Vector2, Vector3, Vector2, Vector2) |
Constructor that uses raw values. This constructor assumes we are storing values of a RectTransform.
|
Name | Description | |
---|---|---|
![]() | HasSetValues |
Can be used to determine if one of the constructors has been called, and the values were successfully cached.
|
Name | Description | |
---|---|---|
![]() | Equals |
Checks if the values of two TransformValues are equal to one another.
|
![]() | SetTransformToCachedValues |
Sets a Transform to the cached values.
|
Name | Description | |
---|---|---|
![]() | AnchoredPosition3D |
The 3D position of the pivot of this RectTransform relative to the anchor reference point.
|
![]() | AnchorMax |
The normalized position in the parent RectTransform that the upper right corner is anchored to.
|
![]() | AnchorMin |
The normalized position in the parent RectTransform that the lower left corner is anchored to.
|
![]() | IsRectTransform |
Whether or not these values came from a RectTransform
|
![]() | LocalScale |
The scale of the Transform relative to the parent.
|
![]() | Pivot |
The normalized position in this RectTransform that it rotates around.
|
![]() | Position |
The position of the Transform in world space.
|
![]() | Rotation |
The rotation of the Transform in world space stored as a Quaternion.
|
![]() | RotationEuler |
The rotation as Euler angles in degrees.
|
![]() | SizeDelta |
The size of this RectTransform relative to the distances between the anchors.
|