Class DebugGhostDrawer.CustomDrawer
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.CustomDrawer
Assembly: Unity.NetCode.dll
Syntax
public class DebugGhostDrawer.CustomDrawer : IComparer<DebugGhostDrawer.CustomDrawer>, IComparable<DebugGhostDrawer.CustomDrawer>
Constructors
CustomDrawer(string, int, Action, Action)
Declaration
public CustomDrawer(string name, int sortOrder, Action onGuiAction, Action editorSaveAction)
Parameters
Fields
DetailsVisible
Declaration
public bool DetailsVisible
Field Value
Enabled
Declaration
Field Value
Name
Declaration
public readonly string Name
Field Value
OnGuiAction
Declaration
[CanBeNull]
public readonly Action OnGuiAction
Field Value
SortOrder
Declaration
public readonly int SortOrder
Field Value
Methods
Compare(CustomDrawer, CustomDrawer)
Declaration
public int Compare(DebugGhostDrawer.CustomDrawer x, DebugGhostDrawer.CustomDrawer y)
Parameters
Returns
CompareTo(CustomDrawer)
Declaration
public int CompareTo(DebugGhostDrawer.CustomDrawer other)
Parameters
Returns
EditorSave()
Declaration
Implements