# SetTransformActive(int, bool)

> Sets the tranform at the given index to active or not.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.AnimationModule

```csharp
public void SetTransformActive(int index, bool value)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The index of the transform.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Active or not.
