entityIdValue
Value of an EntityId property.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Property
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public EntityId entityIdValue { get; set; }
Remarks
Contains a valid value when SerializedProperty.propertyType is SerializedPropertyType.EntityId.
Additional Resources: SerializedProperty.intValue, SerializedProperty.uintValue, SerializedProperty.longValue, SerializedProperty.propertyType, SerializedPropertyType.Integer.
Examples
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}"); }}