Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

name

The property name.

The storage type for the property.

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.