| Parameter | Description |
|---|---|
| extension | The extension of the artifact associated with this data. |
| path | The path to the file containing the artifact data. |
Sets the data to be written to the artifact file with the given extension, by reading it from the file at the supplied path.
An artifact is part of the result of an importer and can contain any data that isn't a UnityEngine.Object.
Multiple artifact file extensions can be used to create multiple artifact files.
The empty and 'info' artifact extensions are reserved by Unity. An empty extension is used for the main artifact, and 'info' is used for the preview data of the imported main object.
For more information on how artifact files work, refer to Contents of the Asset Database documentation.
See also AssetImportContext.SetOutputArtifactData for an alternative method to supply data directly without using a file.