Breakroom is now Sinewave Campus. Book a meeting

SUIRawImage

客户端组件
在此类中RaycastTarget
  1. 属性
  2. RaycastTarget
  3. Maskable
  4. Texture
  5. Color
  6. GameObject
成员 5
属性RaycastTargetEnable Raycast Target.
属性MaskableTo check if the graphic is maskable.
属性TextureThe RawImage's texture.
属性ColorBase color of the Graphic.
属性GameObject–

属性​

RaycastTarget​

bool RaycastTarget {get; set; }

Enable Raycast Target.

示例

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

Maskable​

bool Maskable {get; set; }

To check if the graphic is maskable.

示例

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

Texture​

SResource Texture {get; set; }

The RawImage's texture.

示例

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

Color​

SColor Color {get; set; }

Base color of the Graphic.

示例

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

GameObject只读​

SGameObject GameObject {get; }

示例

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