PackageImportWizard

Internal proxy for Unity's UnityEditor.PackageImportWizard. Drives the multi-step import wizard UI with step navigation, import execution, and cancellation.

Definition

Namespace: Paragon.Editor.ThirdPartyPackageImporter.Internals Assembly: Paragon.Editor.dll

[InternalProxy("UnityEditor.PackageImportWizard", "UnityEditor.CoreModule")]
internal class PackageImportWizard : InternalProxy<PackageImportWizard>

Inheritance: InternalProxy<PackageImportWizard>PackageImportWizard

Remarks

PackageImportWizard controls the wizard flow within Unity's package import dialog. It is accessed as a ScriptableSingleton<> instance by PackageImportWindow and PackageExportWindow.

All method calls are wrapped in try/catch (ExitGUIException) blocks because Unity's internal wizard methods may throw ExitGUIException as part of normal GUI flow control (e.g., when changing layout during repaint). These exceptions are silently caught and ignored.

Properties

IsMultiStepWizard

public bool IsMultiStepWizard { get; }

Whether the current import uses a multi-step wizard (e.g., packages with project settings).

IsProjectSettingStep

Whether the wizard is currently on the project settings step.

Constructors

PackageImportWizard

Parameter
Type
Description

packageImportWizard

object

The internal Unity PackageImportWizard singleton instance

Methods

CancelImport

Cancels the current import operation and closes the wizard.

DoPreviousStep

Navigates to the previous wizard step.

Parameter
Type
Description

importPackageItems

object

The PackageImport.packageItems array

DoNextStep

Navigates to the next wizard step.

Parameter
Type
Description

importPackageItems

object

The PackageImport.packageItems array

DoImportStep

Executes the actual import of the selected items.

Parameter
Type
Description

importPackageItems

object

The PackageImport.packageItems array

CloseImportWindow

Closes the import wizard window.

Common Pitfalls

circle-exclamation
circle-exclamation

See Also

Last updated