docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class EditorMultiplayerRolesManager.AutomaticSelection

    Provides an api for automatically stripping specific component types for the multiplayer roles.

    Inheritance
    object
    EditorMultiplayerRolesManager.AutomaticSelection
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Multiplayer.Editor
    Assembly: Unity.DedicatedServer.MultiplayerRoles.Editor.dll
    Syntax
    public static class EditorMultiplayerRolesManager.AutomaticSelection

    Methods

    GetCustomComponents()

    Gets the list of custom components that are automatically selected for the entire project.

    Declaration
    public static Dictionary<Type, MultiplayerRoleFlags> GetCustomComponents()
    Returns
    Type Description
    Dictionary<Type, MultiplayerRoleFlags>

    Returns a Dictionary where the key is the component Type and the value is the MultiplayerRoleFlags.

    GetMultiplayerRoleMaskForComponentType(Type)

    Gets the multiplayer role mask for a component type.

    Declaration
    public static MultiplayerRoleFlags GetMultiplayerRoleMaskForComponentType(Type type)
    Parameters
    Type Name Description
    Type type

    The component type.

    Returns
    Type Description
    MultiplayerRoleFlags

    Returns the multiplayer role mask of the component type.

    SetCustomComponents(Dictionary<Type, MultiplayerRoleFlags>)

    Sets the list of custom components that are automatically selected for the entire project.

    Declaration
    public static void SetCustomComponents(Dictionary<Type, MultiplayerRoleFlags> customComponents)
    Parameters
    Type Name Description
    Dictionary<Type, MultiplayerRoleFlags> customComponents

    A Dictionary where the key is the component Type and the value is the MultiplayerRoleFlags.

    SetMultiplayerRoleMaskForComponentType(Type, MultiplayerRoleFlags)

    Sets the multiplayer role mask for a component type.

    Declaration
    public static void SetMultiplayerRoleMaskForComponentType(Type type, MultiplayerRoleFlags mask)
    Parameters
    Type Name Description
    Type type

    The component type.

    MultiplayerRoleFlags mask

    The multiplayer role mask to assing to the component type.

    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)