docs.unity.cn
    Show / Hide Table of Contents

    Delegate GhostComponentSerializer.RestoreFromBackupDelegate

    Delegate method used to restore the state of a replicated component from the Unity.NetCode.GhostPredictionHistoryState buffer. Because the history buffer perform a memory copy of the whole component data, it is necessary to call this method to ensure only the replicated portion of the component is actually restored.

    Namespace: Unity.NetCode.LowLevel.Unsafe
    Syntax
    public delegate void RestoreFromBackupDelegate(IntPtr componentData, IntPtr backupData);
    Parameters
    Type Name Description
    IntPtr componentData
    IntPtr backupData
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023