Infohazard.Core 1.4.1
Infohazard Core Utility Library
Loading...
Searching...
No Matches
Infohazard.Core.TagMaskUtility Class Reference

Static operations on Tag enum values. More...

Static Public Member Functions

static bool CompareTagMask (this GameObject obj, long tag)
 Return true if GameObject's tag matches given any tag in given value. More...
 
static bool CompareTagMask (this Component obj, long tag)
 Return true if Component's tag matches given any tag in given value. More...
 
static void SetTagIndex (this GameObject obj, int tagIndex)
 Set the tag index of a GameObject. More...
 
static int GetTagIndex (this GameObject obj)
 Get the tag index of a GameObject. More...
 
static int GetTagIndex (this Component obj)
 Get the tag index of a Component. More...
 
static long GetTagMask (this GameObject obj)
 Get the tag mask of a GameObject. More...
 
static long GetTagMask (this Component obj)
 Get the tag mask of a Component. More...
 

Detailed Description

Static operations on Tag enum values.

Member Function Documentation

◆ CompareTagMask() [1/2]

static bool Infohazard.Core.TagMaskUtility.CompareTagMask ( this Component  obj,
long  tag 
)
static

Return true if Component's tag matches given any tag in given value.

Parameters
objThe Component to check.
tagThe tag to compare, which may be multiple tags.
Returns
Whether Component matches given tag.

◆ CompareTagMask() [2/2]

static bool Infohazard.Core.TagMaskUtility.CompareTagMask ( this GameObject  obj,
long  tag 
)
static

Return true if GameObject's tag matches given any tag in given value.

Parameters
objThe GameObject to check.
tagThe tag to compare, which may be multiple tags.
Returns
Whether GameObject matches given tag.

◆ GetTagIndex() [1/2]

static int Infohazard.Core.TagMaskUtility.GetTagIndex ( this Component  obj)
static

Get the tag index of a Component.

Parameters
objObject to read.
Returns
The Component's tag index.

◆ GetTagIndex() [2/2]

static int Infohazard.Core.TagMaskUtility.GetTagIndex ( this GameObject  obj)
static

Get the tag index of a GameObject.

Parameters
objObject to read.
Returns
The GameObject's tag index.

◆ GetTagMask() [1/2]

static long Infohazard.Core.TagMaskUtility.GetTagMask ( this Component  obj)
static

Get the tag mask of a Component.

Parameters
objObject to read.
Returns
The Component's tag as a mask.

◆ GetTagMask() [2/2]

static long Infohazard.Core.TagMaskUtility.GetTagMask ( this GameObject  obj)
static

Get the tag mask of a GameObject.

Parameters
objObject to read.
Returns
The GameObject's tag as a mask.

◆ SetTagIndex()

static void Infohazard.Core.TagMaskUtility.SetTagIndex ( this GameObject  obj,
int  tagIndex 
)
static

Set the tag index of a GameObject.

Parameters
objObject to modify.
tagIndexTag to set.

The documentation for this class was generated from the following file: