Manages the links between objects.

Constructors

Methods

  • Serialize all links between objects that have a networkId, so they can be persisted and restored later. Each link is stored once as a pair of networkIds.

    Returns [string, string][]

  • Restore links from serialized data. Objects must already exist in the scene with their networkId set.

    Links for objects managed by the save state should be cleared before calling this method, so that stale links are removed. This method only adds the saved links back.

    Parameters

    • linksNetworkSyncData: [string, string][]
    • runtimeScene: RuntimeScene

    Returns void