public static void Open(string path) { UsdImportWindow window = (UsdImportWindow)EditorWindow.GetWindow(typeof(UsdImportWindow)); window.titleContent = new GUIContent("Import Settings"); window.m_path = path; window.Show(); }
public static void ImportUSD() { var path = EditorUtility.OpenFilePanel("Select USD or Alembic file (.usd, .usda, .usdc, .abc)", Application.streamingAssetsPath, ""); if (path == null || path == "") { return; } UsdImportWindow.Open(path); }