docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class GhostPresentationGameObjectPrefab

    The GameObject prefabs which should be used as a visual representation of an entity.

    Inheritance
    object
    GhostPresentationGameObjectPrefab
    Implements
    IComponentData
    IQueryTypeParameter
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Unity.NetCode.Hybrid
    Assembly: Unity.NetCode.Hybrid.dll
    Syntax
    public class GhostPresentationGameObjectPrefab : 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 GameObject Client
    Field Value
    Type Description
    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 GameObject Server
    Field Value
    Type Description
    GameObject

    Implements

    IComponentData
    IQueryTypeParameter
    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)