Breakroom is now Sinewave Campus. Book a meeting

SUIRawImage

ClientComponents
On this classRaycastTarget
  1. Properties
  2. RaycastTarget
  3. Maskable
  4. Texture
  5. Color
  6. GameObject
Members 5
PropertyRaycastTargetEnable Raycast Target.
PropertyMaskableTo check if the graphic is maskable.
PropertyTextureThe RawImage's texture.
PropertyColorBase color of the Graphic.
PropertyGameObject–

Properties​

RaycastTarget​

bool RaycastTarget {get; set; }

Enable Raycast Target.

Example

Lua
Space.Host.ExecutingObject.UIRawImage.RaycastTarget = true

Maskable​

bool Maskable {get; set; }

To check if the graphic is maskable.

Example

Lua
Space.Host.ExecutingObject.UIRawImage.Maskable = true

Texture​

SResource Texture {get; set; }

The RawImage's texture.

Example

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

Color​

SColor Color {get; set; }

Base color of the Graphic.

Example

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

GameObjectRead only​

SGameObject GameObject {get; }

Example

Lua
theGameObject = Space.Host.ExecutingObject.UIRawImage.GameObject