docs.unity3d.com
    Show / Hide Table of Contents

    Struct PredictedGhostSpawn

    Added to a 'PredictedGhostSpawnList' singleton entity. Contains a transient list of ghosts that should be pre-spawned. Expects to be handled during the GhostSpawnClassificationSystem step. InternalBufferCapacity allocated to almost max out chunk memory. In practice, this capacity just needs to hold the maximum number of client-authored ghost entities per frame, which is typically in the range 0 - 1.

    Namespace: Unity.NetCode
    Syntax
    [InternalBufferCapacity(950)]
    public struct PredictedGhostSpawn : IBufferElementData

    Fields

    entity

    Declaration
    public Entity entity
    Field Value
    Type Description
    Entity

    ghostType

    Declaration
    public int ghostType
    Field Value
    Type Description
    Int32

    spawnTick

    Declaration
    public uint spawnTick
    Field Value
    Type Description
    UInt32
    Back to top
    Terms of use
    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