Breakroom is now Sinewave Campus. Book a meeting

SUIRawImage

ClientComposants
Dans cette classeRaycastTarget
  1. Propriétés
  2. RaycastTarget
  3. Maskable
  4. Texture
  5. Color
  6. GameObject
Membres 5
PropriétéRaycastTargetEnable Raycast Target.
PropriétéMaskableTo check if the graphic is maskable.
PropriétéTextureThe RawImage's texture.
PropriétéColorBase color of the Graphic.
PropriétéGameObject–

Propriétés​

RaycastTarget​

bool RaycastTarget {get; set; }

Enable Raycast Target.

Exemple

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

Maskable​

bool Maskable {get; set; }

To check if the graphic is maskable.

Exemple

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

Texture​

SResource Texture {get; set; }

The RawImage's texture.

Exemple

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

Color​

SColor Color {get; set; }

Base color of the Graphic.

Exemple

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

GameObjectLecture seule​

SGameObject GameObject {get; }

Exemple

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