docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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
    object
    DebugGhostDrawer.CustomDrawer
    Implements
    IComparer<DebugGhostDrawer.CustomDrawer>
    IComparable<DebugGhostDrawer.CustomDrawer>
    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.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
    Type Name Description
    string name
    int sortOrder
    Action onGuiAction
    Action editorSaveAction

    Fields

    DetailsVisible

    Declaration
    public bool DetailsVisible
    Field Value
    Type Description
    bool

    Enabled

    Declaration
    public bool Enabled
    Field Value
    Type Description
    bool

    Name

    Declaration
    public readonly string Name
    Field Value
    Type Description
    string

    OnGuiAction

    Declaration
    [CanBeNull]
    public readonly Action OnGuiAction
    Field Value
    Type Description
    Action

    SortOrder

    Declaration
    public readonly int SortOrder
    Field Value
    Type Description
    int

    Methods

    Compare(CustomDrawer, CustomDrawer)

    Declaration
    public int Compare(DebugGhostDrawer.CustomDrawer x, DebugGhostDrawer.CustomDrawer y)
    Parameters
    Type Name Description
    DebugGhostDrawer.CustomDrawer x
    DebugGhostDrawer.CustomDrawer y
    Returns
    Type Description
    int

    CompareTo(CustomDrawer)

    Declaration
    public int CompareTo(DebugGhostDrawer.CustomDrawer other)
    Parameters
    Type Name Description
    DebugGhostDrawer.CustomDrawer other
    Returns
    Type Description
    int

    EditorSave()

    Declaration
    public void EditorSave()

    Implements

    IComparer<T>
    IComparable<T>
    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)