Documentation

Unity Engine

Download Unity

Unity Engine

GetOrCreatePropertyString(string)

Creates a string property with a specified name.
Read time 1 minuteLast updated 3 months ago

Definition

  • Type: Method
  • Namespace: Unity.Hierarchy
  • Assembly: UnityEngine.HierarchyCoreModule
public HierarchyPropertyString GetOrCreatePropertyString(string name)

Parameters

name

The property name.

Returns

Type

Description

HierarchyPropertyStringThe property accessor.

Remarks

The result of this method should be stored and reused to avoid the costly lookup by name.