Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetOrCreateNode(Scene)

Gets or creates the HierarchyNode that corresponds to the specified Scene.
Read time 1 minuteLast updated 12 days ago

Definition

public HierarchyNode GetOrCreateNode(Scene scene)

Parameters

scene

The Scene to get the HierarchyNode for.

Returns

Type

Description

HierarchyNodeThe HierarchyNode that corresponds to the specified Scene.

Remarks

If the node doesn't exist, this method returns a future node that will be used for the Scene. To query the Hierarchy about this node, update the hierarchy first.