Struct RectTransformResult
The computed size and local position of a RectTransform element
Namespace: Unity.Tiny.UI
Syntax
public struct RectTransformResult : IComponentData
Fields
LocalPosition
The position of this rect's pivot point, in world units relative to its parent's LocalPosition.
Declaration
public float2 LocalPosition
Field Value
Type | Description |
---|---|
float2 |
PivotOffset
Offset from the LocalPosition (pivot point) to the lower left of the rectangle. In world units.
Declaration
public float2 PivotOffset
Field Value
Type | Description |
---|---|
float2 |
Size
The size of this rectangle in world units.
Declaration
public float2 Size
Field Value
Type | Description |
---|---|
float2 |
Properties
HiddenResult
Declaration
public bool HiddenResult { get; set; }
Property Value
Type | Description |
---|---|
Boolean |