Documentation

Unity Engine

Unity Engine

SetParent(in HierarchyNode, in HierarchyNode)

Sets the parent node of a hierarchy node.
Read time 1 minuteLast updated 2 months ago

Definition

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

SetParent(HierarchyNode, HierarchyNode)

public bool SetParent(in HierarchyNode node, in HierarchyNode parent)

Parameters

The hierarchy node to set a parent for.

The hierarchy node to set as the parent node.

Returns

Type

Description

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