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
public class DebugGhostDrawer
Fields
CustomDrawers
Declaration
public static List<DebugGhostDrawer.CustomDrawer> CustomDrawers
Field Value
Properties
FirstClientWorld
Declaration
[Obsolete("Use ClientServerBootstrap.ClientWorld instead. RemoveAfter Entities 1.x")]
public static World FirstClientWorld { get; }
Property Value
FirstServerWorld
Declaration
[Obsolete("Use ClientServerBootstrap.ServerWorld instead. RemoveAfter Entities 1.x")]
public static World FirstServerWorld { get; }
Property Value
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")]
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