docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class DebugGhostDrawer

    Allows game code to write its own custom ghost drawers and hook them up in the MultiplayerPlayModeWindow. Implement your own DebugGhostDrawer.CustomDrawer to add a custom debug drawer. See BoundingBoxDebugGhostDrawer for reference.

    Inheritance
    object
    DebugGhostDrawer
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Unity.NetCode
    Assembly: Unity.NetCode.dll
    Syntax
    public class DebugGhostDrawer

    Fields

    CustomDrawers

    Declaration
    public static List<DebugGhostDrawer.CustomDrawer> CustomDrawers
    Field Value
    Type Description
    List<DebugGhostDrawer.CustomDrawer>

    Properties

    FirstClientWorld

    Declaration
    [Obsolete("Use ClientServerBootstrap.ClientWorld instead. RemoveAfter Entities 1.x")]
    public static World FirstClientWorld { get; }
    Property Value
    Type Description
    World

    FirstServerWorld

    Declaration
    [Obsolete("Use ClientServerBootstrap.ServerWorld instead. RemoveAfter Entities 1.x")]
    public static World FirstServerWorld { get; }
    Property Value
    Type Description
    World

    HasRequiredWorlds

    Declaration
    public static bool HasRequiredWorlds { get; }
    Property Value
    Type Description
    bool

    Methods

    RefreshWorldCaches()

    Declaration
    [Obsolete("This functionality is obsolete, worlds are no longer cached here. RemoveAfter Entities 1.x")]
    public static void RefreshWorldCaches()

    RegisterDrawAction(CustomDrawer)

    Replaces the existing DrawAction with the same name, if it already exists.

    Declaration
    public static void RegisterDrawAction(DebugGhostDrawer.CustomDrawer newDrawAction)
    Parameters
    Type Name Description
    DebugGhostDrawer.CustomDrawer newDrawAction
    In This Article
    Back to top
    Copyright © 2025 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)