Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


HasAnyFlags

Gets whether or not any of the specified flags are set on any hierarchy node.
Read time 1 minuteLast updated 17 days ago

Definition

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

HasAnyFlags(HierarchyNodeFlags)

Gets whether or not any of the specified flags are set on any hierarchy node.
public bool HasAnyFlags(HierarchyNodeFlags flags)

Parameters

The hierarchy node flags.

Returns

Type

Description

bool
true
if any node have any of the flags set,
false
otherwise.

HasAnyFlags(HierarchyNode, HierarchyNodeFlags)

Gets whether or not any of the specified flags are set on the hierarchy node.
public bool HasAnyFlags(in HierarchyNode node, HierarchyNodeFlags flags)

Parameters

The hierarchy node.

The hierarchy node flags.

Returns

Type

Description

bool
true
if any of the flags are set,
false
otherwise.