Sinespace Client  2023.2.17543
Client-side scripting for Sinespace
SineSpace.Scripting.Components.SUIRawImage Class Reference
Inheritance diagram for SineSpace.Scripting.Components.SUIRawImage:
ScriptClassComponent< RawImage >

Properties

bool RaycastTarget [get, set]
 Enable Raycast Target. More...
 
bool Maskable [get, set]
 Does this graphic allow masking. More...
 
SResource Texture [get, set]
 The RawImage's texture. More...
 
SColor Color [get, set]
 Base color of the Graphic. More...
 
- Properties inherited from ScriptClassComponent< RawImage >
SGameObject GameObject [get]
 Return the GameObject which component added. More...
 

Property Documentation

◆ Color

SColor SineSpace.Scripting.Components.SUIRawImage.Color
getset

Base color of the Graphic.

local rawImage=Space.Host.GetReference("RawImage").UIRawImage
Space.Log(rawImage.Color.ToString())

◆ Maskable

bool SineSpace.Scripting.Components.SUIRawImage.Maskable
getset

Does this graphic allow masking.

local rawImage=Space.Host.GetReference("RawImage").UIRawImage
Space.Log(rawImage.Maskable)
&ndash;print true.

◆ RaycastTarget

bool SineSpace.Scripting.Components.SUIRawImage.RaycastTarget
getset

Enable Raycast Target.

local rawImage=Space.Host.GetReference("RawImage").UIRawImage
Space.Log(rawImage.RaycastTarget)
&ndash;print true.

◆ Texture

SResource SineSpace.Scripting.Components.SUIRawImage.Texture
getset

The RawImage's texture.

local rawImage=Space.Host.GetReference("RawImage").UIRawImage
Space.Log(rawImage.Texture.Name)
&ndash;print texture name.