| Namespace: | Sirenix.OdinInspector.Editor |
| Assembly: | Sirenix.OdinInspector.Editor |
public static class UnityPropertyEmitter
public const string EMIT_ASSEMBLY_NAME = "Sirenix.OdinInspector.EmittedUnityProperties"
public const HideFlags HOST_GO_HIDE_FLAGS
public const string HOST_GO_NAME = "ODIN_EMIT_HOST_GO_ac922281-4f8a-4e1b-8a45-65af1a8350b3"
public static UnityPropertyEmitter.Handle CreateEmittedMonoBehaviourProperty(string fieldName, Type valueType, int targetCount, ref GameObject gameObject)
| System.String | fieldName | Name of the field to emit. |
| System.Type | valueType | Type of the value to create a property for. |
| System.Int32 | targetCount | The target count of the tree to create a property for. |
| UnityEngine.GameObject | gameObject | The game object that the MonoBehaviour of the property is located on. |
| UnityPropertyEmitter.Handle |
| System.ArgumentNullException | fieldName is null or valueType is null |
| System.ArgumentException | Target count must be equal to or higher than 1. |
public static SerializedProperty CreateEmittedScriptableObjectProperty(string fieldName, Type valueType, int targetCount)
| System.String | fieldName | Name of the field to emit. |
| System.Type | valueType | Type of the value to create a property for. |
| System.Int32 | targetCount | The target count of the tree to create a property for. |
| UnityEditor.SerializedProperty |
| System.ArgumentNullException | fieldName is null or valueType is null |
| System.ArgumentException | Target count must be equal to or higher than 1. |