Search Results for

    Show / Hide Table of Contents

    Class LayerMaskExtensions

    Inheritance
    object
    LayerMaskExtensions
    Namespace: TetraCreations.Core
    Assembly: cs.temp.dll.dll
    Syntax
    public static class LayerMaskExtensions

    Methods

    Contains(LayerMask, GameObject)

    Determines if the layer mask of a game object is set inside the mask source.

    Declaration
    public static bool Contains(this LayerMask mask, GameObject obj)
    Parameters
    Type Name Description
    LayerMask mask

    The mask containing the active/inactive layers.

    GameObject obj

    The GameObject layer to check for its existence in the mask.

    Returns
    Type Description
    bool

    Contains(LayerMask, int)

    Determines if a layer mask is set inside the mask source.

    Declaration
    public static bool Contains(this LayerMask mask, int layer)
    Parameters
    Type Name Description
    LayerMask mask

    The mask containing the active/inactive layers.

    int layer

    The layer we need to check for its existence in the mask.

    Returns
    Type Description
    bool
    In This Article
    Back to top Tetra Creations documentation