Preparing search index...

    Provides information about instantiated prefabs. Exists on a root parent object that instantiated prefabs are spawned underneath.

    Index

    Constructors

    • Parameters

      • sceneObject: SceneObject

        SceneObject hosting this NetworkRootInfo.

      • networkId: string

        Network id of this instantiated object

      • dataStore: GeneralDataStore

        Store containing information about the prefab instantiation

      • locallyCreated: boolean

        true if this instance was instantiated by the current local user in the current session

      • ownerInfo: UserInfo

        User that owns this instance, or null if unowned

      • OptionalpermissivePersistence: Persistence

        Persistence of the instantiated object

      Returns NetworkRootInfo

    Properties

    Helper callbacks related to the data store

    dataStore: GeneralDataStore

    Store containing information about the prefab instantiation

    instantiatedObject: SceneObject

    The instantiated SceneObject. Exists as a child of this SceneObject.

    locallyCreated: boolean

    true if this instance was instantiated by the current local user in the current session

    networkId: string

    Network id of this instantiated object

    onDestroy: EventWrapper<[]> = ...

    Event triggered when the instantiated object is destroyed (both locally or remotely)

    used onDestroyed instead

    onDestroyed: EventWrapper<[]> = ...

    Event triggered when the instantiated object is destroyed (both locally or remotely)

    onLocalDestroyed: EventWrapper<[]> = ...

    Event triggered when the instantiated object is destroyed locally

    onRemoteDestroyed: EventWrapper<[]> = ...

    Event triggered when the instantiated object is destroyed remotely

    ownerInfo: UserInfo

    User that owns this instance, or null if unowned

    persistence: Persistence
    sceneObject: SceneObject

    SceneObject hosting this NetworkRootInfo.

    Methods

    • Returns true if the local user is allowed to modify this store

      Returns boolean

      true if the local user is allowed to modify this store

    • Returns true if the local user is allowed to modify this store

      Returns boolean

      true if the local user is allowed to modify this store

    • Used internally for finishing the NetworkRootInfo setup after the child object has been instantiated

      Returns void

    • Returns the owner's connectionId if an owner exists, otherwise null

      Returns string

      The owner's connectionId if an owner exists, otherwise null

    • Returns the owner's userId if an owner exists, otherwise null

      Returns string

      The owner's userId if an owner exists, otherwise null

    • Returns true if the instantiated object is owned by a user with the passed in connectionId

      Parameters

      • connectionId: string

        connectionId of a user

      Returns boolean

      true if the instantiated object is owned by a user with the passed in connectionId

    • Returns true if the instantiated object is owned by the user connection

      Parameters

      Returns boolean

      true if the instantiated object is owned by the user connection