文档

Unity Engine

Unity Engine

SetParent(in HierarchyNode, in HierarchyNode)

Sets the parent node of a hierarchy node.
阅读时间1 分钟最后更新于 1 天前

Definition

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.