Skip to content

Class · inherits Instance

PackageLink

Official docs ↗

Links a DataModel instance to a corresponding asset in the cloud.

About PackageLink

The purpose of the PackageLink object is to link a DataModel instance to a corresponding asset in the cloud. This improves flows for collaboration, version control, and sharing for models. The PackageLink instance will be a child of the root of the entire package hierarchy.

PackageLinks are not creatable through Scripts. They can only be added through interaction with Studio and can only be parented to Instances that can be published independently of DataModel publish. The PackageLink instance will always be the first child shown in the tree view, regardless of sorting.

Properties 8

  • Creator: stringReadOnlyNotReplicatedNotScriptableThe creator of the package asset.
  • DefaultName: stringEngine-managed name of the package's root instance as it was last published, kept as a baseline for detecting local name changes.

    Managed by the engine and not writable from scripts. Stores the name of the package's root instance as recorded when the package was last published or synced. It defaults to an empty string and is populated from the base root node's name.

    This value is the as-published baseline the engine compares against the current instance name to detect local name customizations and preserve them during a three-way merge when the package is updated.

  • PackageAssetName: stringReadOnlyNotReplicatedNotScriptableThe asset name of the package.
  • PackageContent: ContentReadOnlyNotReplicatedRead-only Content URL for the model asset backing this package.

    A read-only Content that references the package's model asset. The value is the same asset that PackageLink.PackageId points to, expressed as a Content URL rather than a ContentId string. This property cannot be written from a Script.

  • PackageId: ContentIdReadOnlyNotReplicatedThe ID of the asset this package corresponds to.
  • PermissionLevel: PackagePermissionReadOnlyNotReplicatedNotScriptableThe package permission for the current Studio user.
  • SerializedDefaultAttributes: BinaryStringEngine-managed serialized snapshot of the attributes on the package's root instance as it was last published, kept as a baseline for detecting local attribute changes.

    Managed by the engine and not writable from scripts. Stores a serialized (binary) snapshot of the attributes on the package's root instance as recorded when the package was last published or synced. It defaults to an empty value and is populated from the base root node's serialized attributes.

    This snapshot is the as-published baseline for a three-way merge: the engine compares the root instance's current attributes against it to preserve local customizations when the package is updated.

  • VersionNumber: int64NotReplicatedRefers to a revision of a specific package.

    This property refers to a revision of a specific package

PackageLink also has every member of Instance. Deprecated and Roblox-only members are hidden.

Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.