# SetEntityId(AnimationStream, EntityId)

> Sets the EntityId property value into a stream.

## Definition

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

```csharp
public void SetEntityId(AnimationStream stream, EntityId value)
```

### Parameters

**** (\[AnimationStream]\(/engine/6000.5/script-reference/unityengine/animations/animationstream)): The [AnimationStream](/engine/6000.5/script-reference/unityengine/animations/animationstream.md) that holds the animated values.**** (\[EntityId]\(/engine/6000.5/script-reference/unityengine/entityid)): The new EntityId property value.

### Remarks

If the property is not an EntityId, the method will throw an `InvalidOperationException`.
