Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


HasFlags

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

Definition

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

HasFlags(HierarchyNodeFlags)

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

Parameters

The hierarchy node flags.

Returns

Type

Description

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

HasFlags(HierarchyNode, HierarchyNodeFlags)

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

Parameters

The hierarchy node.

The hierarchy node flags.

Returns

Type

Description

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