Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TryAdd(in HierarchyNode, in T)

Attempts to add the specified HierarchyNode and value to the HierarchyNodeMapUnmanaged<T>.
Read time 1 minuteLast updated 13 days ago

Definition

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

TryAdd(HierarchyNode, T)

public bool TryAdd(in HierarchyNode node, in T value)

Parameters

The hierarchy node.

value

T
The value.

Returns

Type

Description

bool
true
if the HierarchyNode/value pair was added to the HierarchyNodeMapUnmanaged<T>,
false
otherwise.