Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Sample

Struct for a package's sample, which is accessible from the Details panel of the Package Manager window.
Read time 1 minuteLast updated 6 days ago

Definition

public struct Sample

Properties

Property

Description

descriptionThe description of the package sample.
displayNameThe display name of the package sample.
imagesIndicates the relative paths to where images used in the sample's description are located within the package.
importPathThe full path to where the sample will be imported, under the project assets folder.
interactiveImportIndicates whether to show the import window when importing a sample that is an asset package (a .unitypackage file).
isImportedIndicates if the sample has already been imported.
resolvedPathThe full path to where the sample is on disk, inside the package that contains the sample.

Methods

Method

Description

ImportImports the package sample into the
Assets
folder.

Static Methods

Method

Description

FindByPackageFinds a list of samples in a package based on a specific version.

Static Events

Member

Description

OnBeforeImportFinishRaised after files are imported into the project, but before the Asset Database refreshes.

Enums

Enum

Description

Sample.ImportOptionsSample import options.