docs.unity3d.com
    Show / Hide Table of Contents

    Class GhostPresentationGameObjectPrefab

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

    Inheritance
    Object
    GhostPresentationGameObjectPrefab
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.NetCode.Hybrid
    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
    Back to top
    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