SColor Color get
set
Default Color of UIImage
SResource Sprite get
set
The sprite that is used to render this image.
bool PreserveAspect get
set
Whether this image should preserve its Sprite aspect ratio.
bool FillCenter get
set
Whether or not to render the center
float FillAmount get
set
Amount of the Image shown
bool FillClockwise get
set
Whether the Image should be filled clockwise (true) or counter-clockwise (false).
int FillOrigin get
set
Controls the origin point of the Fill process.
float AlphaHitTestMinimumThreshold get
set
The alpha threshold specifies the minimum alpha a pixel must have for the event to considered a "hit" on the Image. Alpha values less than the threshold will cause raycast events to pass through the Image. An value of 1 would cause only fully opaque pixels to register raycast events on the Image. The alpha tested is retrieved from the image sprite only, while the alpha of the Image Graphic.color is disregarded.
alphaHitTestMinimumThreshold defaults to 0; all raycast events inside the Image rectangle are considered a hit. In order for greater than 0 to values to work, the sprite used by the Image must have readable pixels. This can be achieved by enabling Read/Write enabled in the advanced Texture Import Settings for the sprite and disabling atlassing for the sprite.
bool HasBorder get
True if the sprite used has borders.
float PixelsPerUnit get
Provides information about how fonts are scale to the screen.
For dynamic fonts, the value is equivalent to the scale factor of the canvas. For non-dynamic fonts, the value is calculated from the requested text size and the size from the font.
SMaterial Material get
set
The specified Material used by this Image. The default Material is used instead if one wasn't specified.
float MinWidth get
The minimum width this UIImage may be allocated. (Used by the Layout system).
float PreferredWidth get
The preferred width this UIImage should be allocated if there is sufficient space. (Used by the Layout system)
float FlexibleWidth get
The extra relative width this UIImage should be allocated if there is additional available space. (Used by the Layout system)
float MinHeight get
The minimum height this UIImage may be allocated.(Used by the Layout system).
float PreferredHeight get
The preferred height this UIImage should be allocated if there is sufficient space. (Used by the Layout system)
float FlexibleHeight get
The extra relative height this UIImage should be allocated if there is additional available space. (Used by the Layout system)
int LayoutPriority get
The layout priority of this UIText component.(Used by the Layout system.)
SGameObject GameObject get
Property Description
Property Name |
---|
SColor Color get
set
SResource Sprite get
set
bool PreserveAspect get
set
bool FillCenter get
set
float FillAmount get
set
bool FillClockwise get
set
int FillOrigin get
set
float AlphaHitTestMinimumThreshold get
set
bool HasBorder get
float PixelsPerUnit get
SMaterial Material get
set
float MinWidth get
float PreferredWidth get
float FlexibleWidth get
float MinHeight get
float PreferredHeight get
float FlexibleHeight get
int LayoutPriority get
SGameObject GameObject get