# SUIRawImage

**成员** 5

|      |                                 |                                      |
| ---- | ------------------------------- | ------------------------------------ |
| 属性 | [RaycastTarget](#raycasttarget) | Enable Raycast Target.               |
| 属性 | [Maskable](#maskable)           | To check if the graphic is maskable. |
| 属性 | [Texture](#texture)             | The RawImage's texture.              |
| 属性 | [Color](#color)                 | Base color of the Graphic.           |
| 属性 | [GameObject](#gameobject)       | –                                    |

## 属性

### RaycastTarget

bool RaycastTarget {get; set; }

Enable Raycast Target.

示例

**Lua**

```lua
Space.Host.ExecutingObject.UIRawImage.RaycastTarget = true

```

### Maskable

bool Maskable {get; set; }

To check if the graphic is maskable.

示例

**Lua**

```lua
Space.Host.ExecutingObject.UIRawImage.Maskable = true

```

### Texture

[SResource](/docs/zh-Hans/scripting/client-scripting-api-reference/types/sresource.md) Texture {get; set; }

The RawImage's texture.

示例

**Lua**

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

```

### Color

[SColor](/docs/zh-Hans/scripting/client-scripting-api-reference/types/scolor.md) Color {get; set; }

Base color of the Graphic.

示例

**Lua**

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

```

### GameObject

[SGameObject](/docs/zh-Hans/scripting/client-scripting-api-reference/types/sgameobject.md) GameObject {get; }

示例

**Lua**

```lua
theGameObject = Space.Host.ExecutingObject.UIRawImage.GameObject 

```
