docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class GhostPresentationGameObjectSystem

    This system will spawn presentation game object for ghosts which requested it. The system runs right after the client spawning code to make sure the game object is created right away. On the server it is important to either deal with not having a presentation game object (by filtering on the cleanup component) or do all spawning in the BeginSimulationCommandBufferSystem to make sure the game objects are created at the same time

    Inheritance
    object
    GhostPresentationGameObjectSystem
    Namespace: Unity.Netcode.Hybrid
    Assembly: Unity.NetCode.Hybrid.dll
    Syntax
    [MovedFrom(true, "Unity.NetCode.Hybrid", null, null)]
    public class GhostPresentationGameObjectSystem : SystemBase

    Methods

    GetGameObjectForEntity(EntityManager, Entity)

    Lookup the presentation GameObject for a specific entity. The entity does not have a direct reference to the GameObject, it needs to go through this method to find it.

    Declaration
    public GameObject GetGameObjectForEntity(EntityManager entityManager, Entity ent)
    Parameters
    Type Name Description
    EntityManager entityManager

    For looking up the entity ent.

    Entity ent

    Entity to find presentation GameObject for.

    Returns
    Type Description
    GameObject

    GameObject for entity.

    In This Article
    Back to top
    Copyright © 2026 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)