Method IsActiveAndEnabled
IsActiveAndEnabled()
Checks if the GameObject is active and enabled.
Declaration
public bool IsActiveAndEnabled()
Returns
| Type | Description |
|---|---|
| bool | Returns true if the GameObject is active and enabled. |
Remarks
This takes a dependency on the active and enable state
IsActiveAndEnabled(Component)
Checks if the GameObject is active and enabled for a given component.
Declaration
public bool IsActiveAndEnabled(Component component)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | component | The Object to check. |
Returns
| Type | Description |
|---|---|
| bool | Returns true if the GameObject is active and enabled. |
Remarks
This takes a dependency on the active and enable state.