docs.unity3d.com
    Show / Hide Table of Contents

    Class GhostSpawnSystem

    Inheritance
    Object
    GhostSpawnSystem
    Namespace: Unity.NetCode
    Syntax
    public class GhostSpawnSystem : SystemBase

    Methods

    ConvertGhostToInterpolated(Entity, Single)

    Convert a predicted ghost to an interpolated ghost. The ghost must support both interpolated and predicted mode, and it cannot be owner predicted. The new components added as a result of this operation will have the inital values from the ghost prefab.

    Declaration
    public bool ConvertGhostToInterpolated(Entity entity, float transitionDuration = null)
    Parameters
    Type Name Description
    Entity entity
    Single transitionDuration
    Returns
    Type Description
    Boolean

    ConvertGhostToPredicted(Entity, Single)

    Convert an interpolated ghost to a predicted ghost. The ghost must support both interpolated and predicted mode, and it cannot be owner predicted. The new components added as a result of this operation will have the inital values from the ghost prefab.

    Declaration
    public bool ConvertGhostToPredicted(Entity entity, float transitionDuration = null)
    Parameters
    Type Name Description
    Entity entity
    Single transitionDuration
    Returns
    Type Description
    Boolean

    OnCreate()

    Declaration
    protected override void OnCreate()

    OnDestroy()

    Declaration
    protected override void OnDestroy()

    OnUpdate()

    Declaration
    protected override void OnUpdate()
    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