docs.unity3d.com
    Show / Hide Table of Contents

    Struct GhostCollectionPrefab

    A list of all prefabs which can be used for ghosts. This is populated with all ghost prefabs on the server and that list is sent for clients. Having a prefab in this list does not guarantee that there is a serializer for it yet. Added to the GhostCollection singleton entity.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.NetCode
    Syntax
    [InternalBufferCapacity(0)]
    public struct GhostCollectionPrefab : IBufferElementData
    Remarks

    The list is sorted by the value of the GhostType guid.

    Fields

    GhostPrefab

    A reference to the prefab entity. The reference is initially equals to Null and assigned by the GhostCollectionSystem when prefabs are processed.

    Declaration
    public Entity GhostPrefab
    Field Value
    Type Description
    Entity

    GhostType

    Declaration
    public GhostType GhostType
    Field Value
    Type Description
    GhostType

    Loading

    Game code should set this to LoadingActive if the prefab is currently being loaded. The collection system will set it to LoadingNotActive every frame, so game code must reset it to LoadingActive every frame the prefab is still loading.

    Declaration
    public GhostCollectionPrefab.LoadingState Loading
    Field Value
    Type Description
    GhostCollectionPrefab.LoadingState
    In This Article
    • Fields
      • GhostPrefab
      • GhostType
      • Loading
    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