# autodestruct

> Does the GameObject of this Trail Renderer auto destruct?

## Definition

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

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

### Remarks

When set to true, the [GameObject](/engine/6000.0/script-reference/unityengine/gameobject.md) will be destroyed when all its points have been removed.
