# EntityReferenceChange

> Represents an entity reference that was changed within a EntityChangeSet This structure references the entity by it's unique EntityGuid.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

```csharp
public struct EntityReferenceChange
```

## Remarks

Multiple patches could exist for the same component with different offsets.

## Fields

| Value                                                                                          | Description                                                                                                                                      |
| ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| [Component](/engine/7000.0/script-reference/unity/entities/entityreferencechange/component.md) | The entity and component this patched is targeted at.                                                                                            |
| [Offset](/engine/7000.0/script-reference/unity/entities/entityreferencechange/offset.md)       | The field offset for the [Entity](/engine/7000.0/script-reference/unity/entities/entity.md) field.                                               |
| [Value](/engine/7000.0/script-reference/unity/entities/entityreferencechange/value.md)         | The entity that the field should reference. Identified by the unique [EntityGuid](/engine/7000.0/script-reference/unity/entities/entityguid.md). |
