UIFrame
Classes
- UIFrame : NativeComponent
Base class for UI components. All UI components uses UIFrame to store their size and pivot. Interactive frames can be used to handle input events.
- Properties:
- UIFrame.localPosition2D: float2
- UIFrame.localPosition2D =(value: float2)
Local position of the frame relative to the parent frame in 2D space.
Unlike localPosition, which represents a 3D world position with Y axis pointing up, localPosition2D represents a 2D/UI position where the Y axis points down.
- Arguments:
value : float2
- UIFrame.size: float2
- UIFrame.size =(value: float2)
Size in pixels. This component is used to define a frame for UI elements.
- Arguments:
value : float2
- UIFrame.pivot: float2
- UIFrame.pivot =(value: float2)
Frame’s origin relative to it’s content. Left-top of the content is (0,0), right-bottom is (1,1). Default is (0.5, 0.5).
- Arguments:
value : float2