Skip to content

Commit f586cc3

Browse files
committed
replace FbxExporters.Editor and FbxExporters.EditorTools with UnityEditor.Formats.Fbx.Exporter
1 parent 66f729e commit f586cc3

14 files changed

+26
-26
lines changed

Packages/com.unity.formats.fbx/Editor/Scripts/ConvertToModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ public static GameObject GetOrCreateFbxAsset(GameObject toConvert,
215215
if (string.IsNullOrEmpty(fbxFullPath)) {
216216
// Generate a unique filename.
217217
if (string.IsNullOrEmpty (fbxDirectoryFullPath)) {
218-
fbxDirectoryFullPath = FbxExporters.EditorTools.ExportSettings.GetFbxAbsoluteSavePath();
218+
fbxDirectoryFullPath = UnityEditor.Formats.Fbx.Exporter.ExportSettings.GetFbxAbsoluteSavePath();
219219
} else {
220220
fbxDirectoryFullPath = Path.GetFullPath (fbxDirectoryFullPath);
221221
}
@@ -323,7 +323,7 @@ public static GameObject ApplyOrCreatePrefab(GameObject instance,
323323
if (string.IsNullOrEmpty(prefabFullPath)) {
324324
// Generate a unique filename.
325325
if (string.IsNullOrEmpty (prefabDirectoryFullPath)) {
326-
prefabDirectoryFullPath = FbxExporters.EditorTools.ExportSettings.GetPrefabAbsoluteSavePath();
326+
prefabDirectoryFullPath = UnityEditor.Formats.Fbx.Exporter.ExportSettings.GetPrefabAbsoluteSavePath();
327327
} else {
328328
prefabDirectoryFullPath = Path.GetFullPath (prefabDirectoryFullPath);
329329
}

Packages/com.unity.formats.fbx/Editor/Scripts/ConvertToPrefabEditorWindow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Collections.Generic;
33
using UnityEngine;
44
using UnityEditor;
5-
using FbxExporters.EditorTools;
5+
using UnityEditor.Formats.Fbx.Exporter;
66
#if UNITY_2018_1_OR_NEWER
77
using UnityEditor.Presets;
88
#endif

Packages/com.unity.formats.fbx/Editor/Scripts/ConvertToPrefabSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using UnityEditor;
22
using UnityEngine;
33

4-
namespace FbxExporters.EditorTools
4+
namespace UnityEditor.Formats.Fbx.Exporter
55
{
66
[CustomEditor (typeof(ConvertToPrefabSettings))]
77
public class ConvertToPrefabSettingsEditor : UnityEditor.Editor

Packages/com.unity.formats.fbx/Editor/Scripts/ExportModelEditorWindow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Collections.Generic;
33
using UnityEngine;
44
using UnityEditor;
5-
using FbxExporters.EditorTools;
5+
using UnityEditor.Formats.Fbx.Exporter;
66
#if UNITY_2018_1_OR_NEWER
77
using UnityEditor.Presets;
88
#endif

Packages/com.unity.formats.fbx/Editor/Scripts/ExportModelSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using UnityEditor;
22
using UnityEngine;
33

4-
namespace FbxExporters.EditorTools
4+
namespace UnityEditor.Formats.Fbx.Exporter
55
{
66
[CustomEditor (typeof(ExportModelSettings))]
77
public class ExportModelSettingsEditor : UnityEditor.Editor

Packages/com.unity.formats.fbx/Editor/Scripts/FbxExportSettings.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System.Collections.Generic;
77
using System.Linq;
88

9-
namespace FbxExporters.EditorTools {
9+
namespace UnityEditor.Formats.Fbx.Exporter {
1010

1111
[CustomEditor(typeof(ExportSettings))]
1212
public class ExportSettingsEditor : UnityEditor.Editor {
@@ -25,7 +25,7 @@ public override void OnInspectorGUI() {
2525

2626
scrollPos = GUILayout.BeginScrollView (scrollPos);
2727

28-
var version = FbxExporters.Editor.ModelExporter.GetVersionFromReadme ();
28+
var version = UnityEditor.Formats.Fbx.Exporter.ModelExporter.GetVersionFromReadme ();
2929
if (!string.IsNullOrEmpty(version)) {
3030
GUILayout.Label ("Version: " + version, EditorStyles.centeredGreyMiniLabel);
3131
EditorGUILayout.Space ();
@@ -110,7 +110,7 @@ public override void OnInspectorGUI() {
110110
"Install Unity Integration",
111111
"Install and configure the Unity integration for the selected 3D application so that you can import and export directly with this project.");
112112
if (GUILayout.Button (installIntegrationContent)) {
113-
EditorApplication.delayCall += FbxExporters.Editor.IntegrationsUI.InstallDCCIntegration;
113+
EditorApplication.delayCall += UnityEditor.Formats.Fbx.Exporter.IntegrationsUI.InstallDCCIntegration;
114114
}
115115
EditorGUI.EndDisabledGroup ();
116116

@@ -128,7 +128,7 @@ public override void OnInspectorGUI() {
128128
"Run this to update all FbxPrefab references in text serialized prefabs and scene files.");
129129

130130
if (GUILayout.Button (repairMissingScripts)) {
131-
var componentUpdater = new FbxExporters.Editor.RepairMissingScripts ();
131+
var componentUpdater = new UnityEditor.Formats.Fbx.Exporter.RepairMissingScripts ();
132132
var filesToRepairCount = componentUpdater.GetAssetsToRepairCount ();
133133
var dialogTitle = "FBX Prefab Component Updater";
134134
if (filesToRepairCount > 0) {
@@ -909,7 +909,7 @@ public static bool CanInstall()
909909
}
910910

911911
public static string GetProjectRelativePath(string fullPath){
912-
var assetRelativePath = FbxExporters.EditorTools.ExportSettings.ConvertToAssetRelativePath(fullPath);
912+
var assetRelativePath = UnityEditor.Formats.Fbx.Exporter.ExportSettings.ConvertToAssetRelativePath(fullPath);
913913
var projectRelativePath = "Assets/" + assetRelativePath;
914914
if (string.IsNullOrEmpty(assetRelativePath)) {
915915
throw new System.Exception("Path " + fullPath + " must be in the Assets folder.");

Packages/com.unity.formats.fbx/Editor/Scripts/FbxExporter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
using UnityEngine.Playables;
88
using UnityEngine.Timeline;
99
using UnityEngine.Formats.FbxSdk;
10-
using FbxExporters.EditorTools;
10+
using UnityEditor.Formats.Fbx.Exporter;
1111
using FbxExporters.Visitors;
1212
using FbxExporters.CustomExtensions;
1313

Packages/com.unity.formats.fbx/Editor/Scripts/FbxExporterRepairMissingScripts.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using UnityEditor;
55
using System.IO;
66

7-
namespace FbxExporters.Editor
7+
namespace UnityEditor.Formats.Fbx.Exporter
88
{
99
public class RepairMissingScripts
1010
{

Packages/com.unity.formats.fbx/Editor/Scripts/FbxPrefabAutoUpdater.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using UnityEditor;
44
using System.Linq;
55
using System;
6-
using FbxExporters.Editor;
6+
using UnityEditor.Formats.Fbx.Exporter;
77

88
namespace FbxExporters
99
{
@@ -57,7 +57,7 @@ public static string FindFbxPrefabAssetPath()
5757
}
5858
}
5959
if (foundPath == "") {
60-
Debug.LogWarning(string.Format("{0} not found; are you trying to uninstall {1}?", FBX_PREFAB_FILE.Substring(1), FbxExporters.Editor.ModelExporter.PACKAGE_UI_NAME));
60+
Debug.LogWarning(string.Format("{0} not found; are you trying to uninstall {1}?", FBX_PREFAB_FILE.Substring(1), UnityEditor.Formats.Fbx.Exporter.ModelExporter.PACKAGE_UI_NAME));
6161
}
6262
return foundPath;
6363
#else
@@ -67,7 +67,7 @@ public static string FindFbxPrefabAssetPath()
6767
if (System.IO.File.Exists(System.IO.Path.GetFullPath(path))) {
6868
return path;
6969
} else {
70-
Debug.LogWarning(string.Format("{0} not found; are you trying to uninstall {1}?", FBX_PREFAB_FILE, FbxExporters.Editor.ModelExporter.PACKAGE_UI_NAME));
70+
Debug.LogWarning(string.Format("{0} not found; are you trying to uninstall {1}?", FBX_PREFAB_FILE, UnityEditor.Formats.Fbx.Exporter.ModelExporter.PACKAGE_UI_NAME));
7171
return "";
7272
}
7373
#endif
@@ -113,7 +113,7 @@ public static bool MayHaveFbxPrefabToFbxAsset(string prefabPath,
113113
static void OnPostprocessAllAssets(string[] imported, string[] deleted, string[] moved, string[] movedFrom)
114114
{
115115
// Do not start if Auto Updater is disabled in FBX Exporter Settings
116-
if (!FbxExporters.EditorTools.ExportSettings.instance.autoUpdaterEnabled)
116+
if (!UnityEditor.Formats.Fbx.Exporter.ExportSettings.instance.autoUpdaterEnabled)
117117
{
118118
return;
119119
}
@@ -293,7 +293,7 @@ public static void UpdateLinkedPrefab(GameObject prefabOrInstance)
293293
// renamed nodes (or auto-update if there's nothing to rename).
294294
var fbxPrefabUtility = new FbxPrefabUtility(fbxPrefabComponent);
295295

296-
if (FbxExporters.EditorTools.ExportSettings.instance.autoUpdaterEnabled || runningUnitTest)
296+
if (UnityEditor.Formats.Fbx.Exporter.ExportSettings.instance.autoUpdaterEnabled || runningUnitTest)
297297
{
298298
fbxPrefabUtility.SyncPrefab();
299299
}

Packages/com.unity.formats.fbx/Editor/Scripts/FbxPrefabInspector.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using UnityEngine;
22
using UnityEditor;
33

4-
namespace FbxExporters.EditorTools {
4+
namespace UnityEditor.Formats.Fbx.Exporter {
55

66
[CustomEditor(typeof(FbxPrefab))]
77
public class FbxPrefabInspector : UnityEditor.Editor {

0 commit comments

Comments
 (0)