docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MultiplayerRolesManager

    Provides an api for managing multiplayer roles in runtime.

    Inheritance
    object
    MultiplayerRolesManager
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Multiplayer
    Assembly: solution.dll
    Syntax
    public static class MultiplayerRolesManager

    Properties

    ActiveMultiplayerRoleMask

    Gets the active multiplayer role mask.

    Declaration
    public static MultiplayerRoleFlags ActiveMultiplayerRoleMask { get; }
    Property Value
    Type Description
    MultiplayerRoleFlags

    Methods

    GetMultiplayerRoleMaskForComponent(Component)

    Gets the multiplayer role mask for a Component.

    Declaration
    public static MultiplayerRoleFlags GetMultiplayerRoleMaskForComponent(Component component)
    Parameters
    Type Name Description
    Component component

    The Component.

    Returns
    Type Description
    MultiplayerRoleFlags

    Returns the multiplayer role mask for the provided Component.

    GetMultiplayerRoleMaskForGameObject(GameObject)

    Gets the multiplayer role mask for a GameObject.

    Declaration
    public static MultiplayerRoleFlags GetMultiplayerRoleMaskForGameObject(GameObject gameObject)
    Parameters
    Type Name Description
    GameObject gameObject

    The GameObject.

    Returns
    Type Description
    MultiplayerRoleFlags

    Returns the multiplayer role mask for the provided GameObject.

    In This Article
    Back to top
    Copyright © 2024 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)