# SCanvasGroup

## Index

### Properties Index

| Property Name                                                  |
| -------------------------------------------------------------- |
| float [**Alpha** ](#alpha)`get` `set`                          |
| bool [**BlocksRaycasts** ](#blocksraycasts)`get` `set`         |
| bool [**IgnoreParentGroups** ](#ignoreparentgroups)`get` `set` |
| bool [**Interactable** ](#interactable)`get` `set`             |

## Properties

### Alpha

float **Alpha** `get` `set`

S*et the alpha of the group.*

{% tabs %}
{% tab title="Lua" %}

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

{% endtab %}
{% endtabs %}

### BlocksRaycasts

bool **BlocksRaycasts** `get` `set`

*Does this group block raycasting (allow collision)?*

{% tabs %}
{% tab title="Lua" %}

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

{% endtab %}
{% endtabs %}

### IgnoreParentGroups

bool **IgnoreParentGroups** `get` `set`

*Should the group ignore parent groups?*

{% tabs %}
{% tab title="Lua" %}

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

{% endtab %}
{% endtabs %}

### Interactable

bool **Interactable** `get` `set`

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

{% tabs %}
{% tab title="Lua" %}

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

{% endtab %}
{% endtabs %}

### GameObject

[SGameObject](https://docs.breakroom.tech/scripting/client-scripting-api-reference/types/sgameobject) **GameObject** `get`

*Returns a reference to the GameObject of this component.*

{% tabs %}
{% tab title="Lua" %}

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

{% endtab %}
{% endtabs %}
