Game Development Reference
In-Depth Information
Note: The Image Type property will not appear until you have assigned
a Sprite to the Source Image property, allowing you to just use it as a
simple or transparent background for basic images or Masks .
Walking through this control, the common options we have are:
Source Image : This is the sprite image to displayed within the bounds of the
Rect Transform .
Note: Other than color, none of the other options will do anything
unless an image has been selected. Without an image, it just acts like a
colored box.
There is a pretextured Image control called a Panel . A Panel control
is just an Image control with one of the built-in sprites that come with
Unity preconfigured as the Source Image .
Color : This is the tint color to apply to the sprite or the background color of
the Rect Transform area.
Note, if your Sprite has black sections, then the color tint will not affect
those parts.
Material : If you wish to apply shaders to your UI controls, then you can
apply a material with a shader attached to it.
Preserve Aspect : If you want to uniformly scale the source image within the
Rect Transform , then by clicking this option, the source image will remain in
the same aspect as the original image no matter how much you stretch and
twist the GameObjects Rect Transform . This option only appears for Simple
and Filled Image Types (see the following section for the explanation of
Image Types).
Set Native Size : If you want to resize the Rect Transform of the GameObject
to the original size of the selected image, then clicking on this button will do
just that.
 
Search WWH ::




Custom Search