|
|
Line 1: |
Line 1: |
− | Displays a Texture2D for the UI System. Best to use it only for backgrounds or temporary visible graphics.
| + | This page has moved to: https://docs.sine.space/v/scripting/client-scripting/components/suirawimage |
− | | + | |
− | =Properties=
| + | |
− | | + | |
− | | + | |
− | {{ScriptFunction|bool|RaycastTarget|{get;set;}|Enable Raycast Target.|5=
| + | |
− | local rawImage=Space.Host.GetReference("RawImage").UIRawImage<br>
| + | |
− | Space.Log(rawImage.RaycastTarget)<br>
| + | |
− | ''--print true.''
| + | |
− | }}
| + | |
− | | + | |
− | {{ScriptFunction|bool|Maskable|{get; set;}|To check if the graphic is maskable.|5=local local rawImage=Space.Host.GetReference("RawImage").UIRawImage<br>
| + | |
− | Space.Log(rawImage.Maskable)<br>
| + | |
− | ''--print true.''
| + | |
− | }}
| + | |
− | | + | |
− | {{ScriptFunction|SResource|Texture|{get; set;}|The RawImage's texture.|5=local local rawImage=Space.Host.GetReference("RawImage").UIRawImage<br>
| + | |
− | Space.Log(rawImage.Texture.Name)<br>
| + | |
− | ''--print texture name..''
| + | |
− | }}
| + | |
− | | + | |
− | {{ScriptFunction|SColor|Color|{get; set;}|Base color of the Graphic.|5=local local rawImage=Space.Host.GetReference("RawImage").UIRawImage<br>
| + | |
− | Space.Log(rawImage.Color.ToString())
| + | |
− | }}
| + | |
− | | + | |
− | {{Scripting Navbox}}
| + | |
Latest revision as of 06:43, 19 September 2022
This page has moved to: https://docs.sine.space/v/scripting/client-scripting/components/suirawimage