# DRMLiveObject

Run-time class contenting self-animatable DRM properties.

<figure><img src="https://1494537888-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVDsGRBXgFisq0hO6tTXv%2Fuploads%2Fd5XqOKpZQsJmGklgVhEG%2F43.png?alt=media&#x26;token=46d29f7a-ded1-4508-8444-d9b92a4a7c3f" alt="" width="281"><figcaption></figcaption></figure>

Each **DRM Live Object** has its own **Life Length** during which its properties are animated. After the end of the life cycle object is destroyed.

```csharp
//Example of instantiating DRM Live Object on collision and adding it to the Pool

using UnityEngine;
using AmazingAssets.DynamicRadialMasks;

public class Example : MonoBehaviour
{
    public DRMController drmController;
    public DRMLiveObject drmLiveObject = new DRMLiveObject();

    void OnCollisionEnter(Collision collision)
    {
        if (drmController != null)
        {
            drmController.AddObjectToPool(new DRMLiveObject(drmLiveObject, collision.contacts[0].point));
        }
    }
}
```
