SUIRawImage
客户端组件
在此类中RaycastTarget
成员 5
| 属性 | RaycastTarget | Enable Raycast Target. |
| 属性 | Maskable | To check if the graphic is maskable. |
| 属性 | Texture | The RawImage's texture. |
| 属性 | Color | Base 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
The RawImage's texture.
示例
Lua
Space.Host.ExecutingObject.UIRawImage.Texture = Space.GetResource("Resource Name")
Color
Base color of the Graphic.
示例
Lua
Space.Host.ExecutingObject.UIRawImage.Color = Color.Red
GameObject只读
示例
Lua
theGameObject = Space.Host.ExecutingObject.UIRawImage.GameObject



