Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

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.