기술 자료

Unity Engine

Unity Engine

SetFlags

Sets the specified flags on all hierarchy nodes.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

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

SetFlags(HierarchyNodeFlags)

Sets the specified flags on all hierarchy nodes.
public void SetFlags(HierarchyNodeFlags flags)

Parameters

The hierarchy node flags.

SetFlags(HierarchyNode, HierarchyNodeFlags)

Sets the specified flags on the hierarchy node.
public void SetFlags(in HierarchyNode node, HierarchyNodeFlags flags)

Parameters

The hierarchy node.

The hierarchy node flags.

SetFlags(ReadOnlySpan<HierarchyNode>, HierarchyNodeFlags)

Sets the specified flags on the hierarchy nodes.
public int SetFlags(ReadOnlySpan<HierarchyNode> nodes, HierarchyNodeFlags flags)

Parameters

The hierarchy nodes.

The hierarchy node flags.

Returns

Type

Description

intThe number of nodes that had their flags set.

Remarks

Null or invalid nodes are ignored.

SetFlags(ReadOnlySpan<int>, HierarchyNodeFlags)

Sets the specified flags on the hierarchy node indices.
public int SetFlags(ReadOnlySpan<int> indices, HierarchyNodeFlags flags)

Parameters

The hierarchy node indices.

The hierarchy node flags.

Returns

Type

Description

intThe number of nodes that had their flags set.

Remarks

Invalid node indices are ignored.

SetFlags(HierarchyNode, HierarchyNodeFlags, bool)

Sets the specified flags on all hierarchy nodes.
경고
Deprecated. SetFlags(node, flags, recurse) with a bool parameter is obsolete, please use SetFlags(node, flags) or SetFlags(node, flags, direction) instead.
public void SetFlags(in HierarchyNode node, HierarchyNodeFlags flags, bool recurse)

Parameters


The hierarchy node flags.

recurse