# SCanvasGroup

**الأعضاء** 5

|       |                                           |                                                                         |
| ----- | ----------------------------------------- | ----------------------------------------------------------------------- |
| خاصية | [Alpha](#alpha)                           | Set the alpha of the group.                                             |
| خاصية | [BlocksRaycasts](#blocksraycasts)         | Does this group block raycasting (allow collision)?                     |
| خاصية | [IgnoreParentGroups](#ignoreparentgroups) | Should the group ignore parent groups?                                  |
| خاصية | [Interactable](#interactable)             | Is the group interactable (are the elements beneath the group enabled)? |
| خاصية | [GameObject](#gameobject)                 | Returns a reference to the GameObject of this component.                |

## الخصائص

### Alpha

float Alpha {get; set; }

Set the alpha of the group.

مثال

**Lua**

```lua
Space.Host.CanvasGroup.Alpha = 1.0

```

### BlocksRaycasts

bool BlocksRaycasts {get; set; }

Does this group block raycasting (allow collision)?

مثال

**Lua**

```lua
Space.Host.CanvasGroup.BlocksRaycasts = true

```

### IgnoreParentGroups

bool IgnoreParentGroups {get; set; }

Should the group ignore parent groups?

مثال

**Lua**

```lua
Space.Host.CanvasGroup.IgnoreParentGroups = true

```

### Interactable

bool Interactable {get; set; }

Is the group interactable (are the elements beneath the group enabled)?

مثال

**Lua**

```lua
Space.Host.CanvasGroup.Interactable = true

```

### GameObject

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

Returns a reference to the GameObject of this component.

مثال

**Lua**

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

```
