跳到主要内容

SUIRawImage

Index​

Properties Index​

Property Name
bool RaycastTarget get set
bool Maskable get set
SResource Texture get set
SColor Color get set
SGameObject GameObject get

Properties​

RaycastTarget​

bool RaycastTarget get set

Enable Raycast Target.

Space.Host.ExecutingObject.UIRawImage.RaycastTarget = true

Maskable​

bool Maskable get set

To check if the graphic is maskable.

Space.Host.ExecutingObject.UIRawImage.Maskable = true

Texture​

SResource Texture get set

The RawImage's texture.

Space.Host.ExecutingObject.UIRawImage.Texture = Space.GetResource("Resource Name")

Color​

SColor Color get set

Base color of the Graphic.

Space.Host.ExecutingObject.UIRawImage.Color = Color.Red

GameObject​

SGameObject GameObject get

Property Description

theGameObject = Space.Host.ExecutingObject.UIRawImage.GameObject