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
DebugGhostDrawer
Assembly: Unity.NetCode.dll
Syntax
[MovedFrom(true, "Unity.NetCode", null, null)]
public class DebugGhostDrawer
Fields
CustomDrawers
Declaration
public static List<DebugGhostDrawer.CustomDrawer> CustomDrawers
Field Value
Properties
HasRequiredWorlds
Declaration
public static bool HasRequiredWorlds { get; }
Property Value
Methods
RefreshWorldCaches()
Declaration
[Obsolete("This functionality is obsolete, worlds are no longer cached here. RemoveAfter Entities 1.x", true)]
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