docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Operator implicit operator

    implicit operator int(InteractionLayerMask)

    Implicitly converts an InteractionLayerMask to an integer.

    Declaration
    public static implicit operator int(InteractionLayerMask mask)
    Parameters
    Type Name Description
    InteractionLayerMask mask

    The mask to be converted.

    Returns
    Type Description
    int

    Returns the integer value of the Interaction Layer Mask.

    implicit operator InteractionLayerMask(int)

    Implicitly converts an integer to an InteractionLayerMask.

    Declaration
    public static implicit operator InteractionLayerMask(int intVal)
    Parameters
    Type Name Description
    int intVal

    The mask value.

    Returns
    Type Description
    InteractionLayerMask

    Returns the Interaction Layer Mask for the integer value.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)