-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using KSP2UT.KSP2UnityTools; | ||
using UnityEditor; | ||
using UnityEngine; | ||
using UnityEngine.Windows; | ||
|
||
namespace Editor.KSP2UnityTools.Editor | ||
{ | ||
|
||
public static class KSP2UnityToolsManager | ||
{ | ||
public static readonly KSP2UnityToolsSettings Settings; | ||
|
||
static KSP2UnityToolsManager() | ||
{ | ||
if (!File.Exists("Assets/KSP2UTSettings.asset")) | ||
{ | ||
Settings = ScriptableObject.CreateInstance<KSP2UnityToolsSettings>(); | ||
AssetDatabase.CreateAsset(Settings, "Assets/KSP2UTSettings.asset"); | ||
AssetDatabase.SaveAssets(); | ||
} | ||
else | ||
{ | ||
Settings = AssetDatabase.LoadAssetAtPath<KSP2UnityToolsSettings>("Assets/KSP2UTSettings.asset"); | ||
} | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
namespace KSP2UT.KSP2UnityTools | ||
{ | ||
|
||
public class KSP2UnityToolsSettings : ScriptableObject | ||
{ | ||
public Dictionary<string, string> gameObjectPaths = new(); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.