# entityIdValue

> Value of an EntityId property.

## Definition

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

```csharp
public EntityId entityIdValue { get; set; }
```

### Remarks

Contains a valid value when [SerializedProperty.propertyType](/engine/6000.3/script-reference/unityeditor/serializedproperty/propertytype.md) is [SerializedPropertyType.EntityId](/engine/6000.3/script-reference/unityeditor/serializedpropertytype/entityid.md).

Additional Resources: [SerializedProperty.intValue](/engine/6000.3/script-reference/unityeditor/serializedproperty/intvalue.md), [SerializedProperty.uintValue](/engine/6000.3/script-reference/unityeditor/serializedproperty/uintvalue.md), [SerializedProperty.longValue](/engine/6000.3/script-reference/unityeditor/serializedproperty/longvalue.md), [SerializedProperty.propertyType](/engine/6000.3/script-reference/unityeditor/serializedproperty/propertytype.md), [SerializedPropertyType.Integer](/engine/6000.3/script-reference/unityeditor/serializedpropertytype/integer.md).

### Examples

```csharp
using System;
using UnityEditor;
using UnityEngine;

public class EntityIdTypeExample : ScriptableObject
{
    public EntityId m_EntityId = EntityId.None;

    [MenuItem("Example/SerializedProperty EntityId Access APIs")]
    static void TestMethod()
    {
        // This example demonstrates how to access an EntityId via SerializedProperty

        EntityIdTypeExample obj = ScriptableObject.CreateInstance<EntityIdTypeExample>();
        SerializedObject sObj = new SerializedObject(obj);

        Debug.Log($"m_EntityId  : {sObj.FindProperty("m_EntityId").entityIdValue}");
    }
}
```
