GetOrCreatePropertyString(string)
Creates a string property with a specified name.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: Unity.Hierarchy
- Assembly: UnityEngine.HierarchyCoreModule
public HierarchyPropertyString GetOrCreatePropertyString(string name)
Parameters
The property name.
Returns
Type | Description |
|---|---|
| HierarchyPropertyString | The property accessor. |
Remarks
The result of this method should be stored and reused to avoid the costly lookup by name.