Displays a Texture2D for the UI System. Best to use it only for backgrounds or temporary visible graphics.
Properties
RaycastTarget
bool RaycastTarget
{get;set;}
Enable Raycast Target.
local rawImage=Space.Host.GetReference("RawImage").UIRawImage
Space.Log(rawImage.RaycastTarget)
--print true.
Maskable
bool Maskable
{get; set;}
To check if the graphic is maskable.
local local rawImage=Space.Host.GetReference("RawImage").UIRawImage
Space.Log(rawImage.Maskable)
--print true.
Texture
The RawImage's texture.
local local rawImage=Space.Host.GetReference("RawImage").UIRawImage
Space.Log(rawImage.Texture.Name)
--print texture name..
Color
Base color of the Graphic.
local local rawImage=Space.Host.GetReference("RawImage").UIRawImage
Space.Log(rawImage.Color.ToString())
Scripting Portal
|
|
Common
|
|
|
Key Classes
|
|
|
Helper Classes
|
|
|
Scripting samples and tutorials
|
|
|