# optimizeGameObjects

> Animation optimization setting.

## Definition

* **Type:** Property
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public bool optimizeGameObjects { get; set; }
```

### Remarks

In the GameObjects hierarchy of a character, the GameObjects which only contain Transform component, will be optimized out unless they are specified in [ModelImporter.extraExposedTransformPaths](/engine/6000.0/script-reference/unityeditor/modelimporter/extraexposedtransformpaths.md) for better CPU performance. The remaining GameObjects hierarchy will be flattened.
