Raw Image
Native picture
The Raw image control displays a non-interactive image to the user. This can is used for decoration, icons, etc, and the image can also is changed from a script to reflect changes in other C Ontrols. The control is similar to the image control but does not having the same set of options for animating the image and accurate LY filing the control rectangle. However, the Raw Image can display any texture whilst the Image can only show a Sprite texture.
The Raw image control presents a non-interactive picture to the user. It can be used as decorations, icons, etc. And image can change the image with a script to reflect changes to other controls. This control is similar to the image control but does not provide more settings to let the picture fill the space's rectangular space in different ways. However, Raw image can be used with all types of texture,image control texture but must be a sprite,
A Raw Image Control
Properties
Property
Property
: |
Function: |
Texture |
The texture that represents the image to display. |
Color |
The color to apply to the image. |
Material |
The Material to use for rendering the image. |
UV Rectangle |
The image ' s offset and size within the control rectangle, given in normalized coordinates (range 0.0 to 1.0). The edges of the image is stretched to fill the space around the UV rectangle. |
Properties |
function |
Texture |
The texture that represents the image to be displayed |
Color |
The color to apply to the image |
Material |
Material for rendering a picture |
UV Rectangle |
The offset and size of the image within the control's rectangular area, given in normalized coordinates (range 0.0 to 1.0). The edges of the image are stretched to fill the space around the UV rectangle. The image ' s offset and size within the control rectangle, given in normalized coordinates (range 0.0 to 1.0). The edges of the image is stretched to fill the space around the UV rectangle.
|
Details
With
Since the Raw Image does not require a sprite texture, you can use it to display any texture available to the Unity player . For example, you might show an image downloaded from a URL using the WWW class or a texture from an object in a game.
Because the original image does not require a sprite texture, it can be used to display any textures available to unity. For example, you might use the WWW class to download images from URLs or textures from objects in the game.
The UV Rectangle properties allow you to display a small section of a larger image. The X and Y coordinates specify which part of the image are aligned with the bottom left corner of the CO Ntrol. For example, an X coordinate of 0.25 would cut off the leftmost quarter of the image. The W and H (ie, width and height) properties indicate the width and height of the section of an image that Would be scaled to fit the control rectangle. For example, a width and height of 0.5 of "would scale a quarter" of the image area up to the control rectangle. By changing these properties, you can zoom and scale the image as desired (see also the Scrollbar control).
The UV Rectangle property allows you to display a small portion of a larger image. The x and Y coordinates specify which part of the image is aligned with the lower-left corner of the control. For example, the x-coordinate of 0.25 will cut off the leftmost one-fourth of the image. The W and H (that is, width and height) properties represent the width and height of the portion of the image that will be scaled to fit the control rectangle. For example, a width and height of 0.5 will proportionally scale the One-fourth image area to fill the control rectangle. By changing these properties, you can scale and scale the image as needed (see also scrollbar controls).
Unity2017.1 official Ugui document translation--raw Image