GetOrCreatePropertyUnmanaged<T>(string, HierarchyPropertyStorageType)
Creates an unmanaged property with a specified name.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: Unity.Hierarchy
- Assembly: UnityEngine.HierarchyCoreModule
public HierarchyPropertyUnmanaged<T> GetOrCreatePropertyUnmanaged<T>(string name, HierarchyPropertyStorageType type = HierarchyPropertyStorageType.Default) where T : unmanaged
Parameters
Returns
Type | Description |
|---|---|
| HierarchyPropertyUnmanaged<T> | The property accessor. |
Remarks
The result of this method should be stored and reused to avoid the costly lookup by name.