docs.unity3d.com
    Show / Hide Table of Contents

    Class ClientServerWorldExtensions

    Netcode specific extension methods for worlds.

    Inheritance
    Object
    ClientServerWorldExtensions
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.NetCode
    Syntax
    public static class ClientServerWorldExtensions

    Methods

    IsClient(World)

    Check if a world is a client, will also return true for thin clients.

    Declaration
    public static bool IsClient(this World world)
    Parameters
    Type Name Description
    World world

    A World instance

    Returns
    Type Description
    Boolean

    IsClient(WorldUnmanaged)

    Check if an unmanaged world is a client, will also return true for thin clients.

    Declaration
    public static bool IsClient(this WorldUnmanaged world)
    Parameters
    Type Name Description
    WorldUnmanaged world

    A WorldUnmanaged instance

    Returns
    Type Description
    Boolean

    IsServer(World)

    Check if a world is a server.

    Declaration
    public static bool IsServer(this World world)
    Parameters
    Type Name Description
    World world

    A World instance

    Returns
    Type Description
    Boolean

    IsServer(WorldUnmanaged)

    Check if an unmanaged world is a server.

    Declaration
    public static bool IsServer(this WorldUnmanaged world)
    Parameters
    Type Name Description
    WorldUnmanaged world

    A WorldUnmanaged instance

    Returns
    Type Description
    Boolean

    IsThinClient(World)

    Check if a world is a thin client.

    Declaration
    public static bool IsThinClient(this World world)
    Parameters
    Type Name Description
    World world

    A World instance

    Returns
    Type Description
    Boolean

    IsThinClient(WorldUnmanaged)

    Check if an unmanaged world is a thin client.

    Declaration
    public static bool IsThinClient(this WorldUnmanaged world)
    Parameters
    Type Name Description
    WorldUnmanaged world

    A WorldUnmanaged instance

    Returns
    Type Description
    Boolean
    In This Article
    • Methods
      • IsClient(World)
      • IsClient(WorldUnmanaged)
      • IsServer(World)
      • IsServer(WorldUnmanaged)
      • IsThinClient(World)
      • IsThinClient(WorldUnmanaged)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023