Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetProperty

Sets a value for a property of a hierarchy node.
Read time 1 minuteLast updated 13 days ago

Definition

  • Type: Method
  • Namespace: Unity.Hierarchy
  • Assembly: UnityEngine.HierarchyCoreModule

SetProperty<T>(HierarchyPropertyUnmanaged<T>, HierarchyNode, T)

Sets a value for a property of a hierarchy node.
public bool SetProperty<T>(in HierarchyPropertyUnmanaged<T> property, in HierarchyNode node, T value) where T : unmanaged

Parameters

The property.

The hierarchy node.

value

T
The property value.

Returns

Type

Description

bool
true
if the command was appended to the list,
false
otherwise.

SetProperty(HierarchyPropertyString, HierarchyNode, string)

Sets a value for a property of a hierarchy node
public bool SetProperty(in HierarchyPropertyString property, in HierarchyNode node, string value)

Parameters

The property.

The hierarchy node.

value

The property value.

Returns

Type

Description

bool
true
if the command was appended to the list,
false
otherwise.