SUIImage
| Property | Color | Default Color of UIImage |
| Property | Sprite | The sprite that is used to render this image. |
| Property | PreserveAspect | Whether this image should preserve its Sprite aspect ratio. |
| Property | FillCenter | Whether or not to render the center |
| Property | FillAmount | Amount of the Image shown |
| Property | FillClockwise | Whether the Image should be filled clockwise (true) or counter-clockwise (false). |
| Property | FillOrigin | Controls the origin point of the Fill process. |
| Property | AlphaHitTestMinimumThreshold | The alpha threshold specifies the minimum alpha a pixel must have for the event to considered a "hit" on the Image. |
| Property | HasBorder | True if the sprite used has borders. |
| Property | PixelsPerUnit | Provides information about how fonts are scale to the screen. |
| Property | Material | The specified Material used by this Image. |
| Property | MinWidth | The minimum width this UIImage may be allocated. (Used by the Layout system). |
| Property | PreferredWidth | The preferred width this UIImage should be allocated if there is sufficient space. (Used by the Layout system) |
| Property | FlexibleWidth | The extra relative width this UIImage should be allocated if there is additional available space. (Used by the Layout system) |
| Property | MinHeight | The minimum height this UIImage may be allocated.(Used by the Layout system). |
| Property | PreferredHeight | The preferred height this UIImage should be allocated if there is sufficient space. (Used by the Layout system) |
| Property | FlexibleHeight | The extra relative height this UIImage should be allocated if there is additional available space. (Used by the Layout system) |
| Property | LayoutPriority | The layout priority of this UIText component.(Used by the Layout system.) |
| Property | GameObject | – |
Properties
Color
Default Color of UIImage
Example
Space.Host.ExecutingObject.UIImage.Color= Color.Red
Sprite
The sprite that is used to render this image.
Example
Space.Host.ExecutingObject.UIImage.Sprite = Space.GetResource("resource name")
PreserveAspect
Whether this image should preserve its Sprite aspect ratio.
Example
Space.Host.ExecutingObject.UIImage.PreserveAspect = true
FillCenter
Whether or not to render the center
Example
Space.Host.ExecutingObject.UIImage.FillCenter = true
FillAmount
Amount of the Image shown
Example
Space.Host.ExecutingObject.UIImage.FillAmount = 0.5
FillClockwise
Whether the Image should be filled clockwise (true) or counter-clockwise (false).
Example
Space.Host.ExecutingObject.UIImage.FillClockwise = true
FillOrigin
Controls the origin point of the Fill process.
Example
Space.Host.ExecutingObject.UIImage.FillOrigin = 0
AlphaHitTestMinimumThreshold
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.
Example
Space.Host.ExecutingObject.UIImage.AlphaHitTestMinimumThreshold = 0
HasBorderRead only
True if the sprite used has borders.
Example
imgHasBorder = Space.Host.ExecutingObject.UIImage.HasBorder
PixelsPerUnitRead only
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.
Example
ppUnit = Space.Host.ExecutingObject.UIImage.PixelsPerUnit
Material
The specified Material used by this Image. The default Material is used instead if one wasn't specified.
Example
Space.Host.ExecutingObject.UIImage.Material = Space.GetResource("resource name").AsMaterial
MinWidthRead only
The minimum width this UIImage may be allocated. (Used by the Layout system).
Example
minWidth = Space.Host.ExecutingObject.UIImage.MinWidth
PreferredWidthRead only
The preferred width this UIImage should be allocated if there is sufficient space. (Used by the Layout system)
Example
prefWidth = Space.Host.ExecutingObject.UIImage.PreferredWidth
FlexibleWidthRead only
The extra relative width this UIImage should be allocated if there is additional available space. (Used by the Layout system)
Example
flexWidth = Space.Host.ExecutingObject.UIImage.FlexibleWidth
MinHeightRead only
The minimum height this UIImage may be allocated.(Used by the Layout system).
Example
minHeight = Space.Host.ExecutingObject.UIImage.MinHeight
PreferredHeightRead only
The preferred height this UIImage should be allocated if there is sufficient space. (Used by the Layout system)
Example
prefHeight = Space.Host.ExecutingObject.UIImage.PreferredHeight
FlexibleHeightRead only
The extra relative height this UIImage should be allocated if there is additional available space. (Used by the Layout system)
Example
flexHeight = Space.Host.ExecutingObject.UIImage.FlexibleHeight
LayoutPriorityRead only
The layout priority of this UIText component.(Used by the Layout system.)
Example
layoutPrio = Space.Host.ExecutingObject.UIImage.LayoutPriority
GameObjectRead only
Example
theGameObject = Space.Host.ExecutingObject.UIImage.GameObject



