Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


entityIdValue

Value of an EntityId property.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public EntityId entityIdValue { get; set; }

Remarks

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}"); }}