docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct UnmanagedGhostPresentationGameObjectPrefab

    The GameObject prefabs which should be used as a visual representation of an entity. Unmanaged replacement for the deprecated GhostPresentationGameObjectPrefab; the prefab references are stored as UnityObjectRef<T> so the component does not need to be managed.

    Implements
    IComponentData
    IQueryTypeParameter
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.NetCode.Hybrid
    Assembly: Unity.NetCode.Hybrid.dll
    Syntax
    public struct UnmanagedGhostPresentationGameObjectPrefab : IComponentData, IQueryTypeParameter

    Fields

    Client

    The GameObject prefab which should be used as a visual representation of an entity on the client. It is not possible to have separate GameObjects for interpolated and predicted ghosts, doing that would break prediction switching.

    Declaration
    public UnityObjectRef<GameObject> Client
    Field Value
    Type Description
    UnityObjectRef<GameObject>

    Server

    The GameObject prefab which should be used as a visual representation of an entity on the server. Since this is the server instance it should usually not be visible, but it is needed to for example run animations on the server.

    Declaration
    public UnityObjectRef<GameObject> Server
    Field Value
    Type Description
    UnityObjectRef<GameObject>

    Implements

    Unity.Entities.IComponentData
    Unity.Entities.IQueryTypeParameter
    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)