docs.unity3d.com
    Show / Hide Table of Contents

    Class GhostComponentUtilities

    Inheritance
    Object
    GhostComponentUtilities
    Namespace: Unity.NetCode
    Syntax
    public static class GhostComponentUtilities : object

    Methods

    GetDebugTypeName(ComponentType)

    Declaration
    public static string GetDebugTypeName(this ComponentType self)
    Parameters
    Type Name Description
    ComponentType self
    Returns
    Type Description
    String

    GetFirstGhostTypeId(NativeArray<GhostComponent>)

    Find the first valid ghost type id in an array of ghost components, pre-spawned ghosts have type id -1. This method returns -1 if no ghost type id is found.

    Declaration
    public static int GetFirstGhostTypeId(this NativeArray<GhostComponent> self)
    Parameters
    Type Name Description
    NativeArray<GhostComponent> self
    Returns
    Type Description
    Int32

    GetFirstGhostTypeId(NativeArray<GhostComponent>, out Int32)

    Find the first valid ghost type id in an array of ghost components, pre-spawned ghosts have type id -1. This method returns -1 if no ghost type id is found.

    Declaration
    public static int GetFirstGhostTypeId(this NativeArray<GhostComponent> self, out int firstGhost)
    Parameters
    Type Name Description
    NativeArray<GhostComponent> self
    Int32 firstGhost
    Returns
    Type Description
    Int32
    In This Article
    • Methods
      • GetDebugTypeName(ComponentType)
      • GetFirstGhostTypeId(NativeArray<GhostComponent>)
      • GetFirstGhostTypeId(NativeArray<GhostComponent>, out Int32)
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023