first commit
This commit is contained in:
+24
@@ -0,0 +1,24 @@
|
||||
#if !NOT_UNITY3D
|
||||
|
||||
using System.IO;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using Zenject.Internal;
|
||||
|
||||
namespace Zenject.ReflectionBaking
|
||||
{
|
||||
public static class ReflectionBakingMenuItems
|
||||
{
|
||||
[MenuItem("Assets/Create/Zenject/Reflection Baking Settings", false, 100)]
|
||||
public static void CreateReflectionBakingSettings()
|
||||
{
|
||||
var folderPath = ZenUnityEditorUtil.GetCurrentDirectoryAssetPathFromSelection();
|
||||
|
||||
var config = ScriptableObject.CreateInstance<ZenjectReflectionBakingSettings>();
|
||||
|
||||
ZenUnityEditorUtil.SaveScriptableObjectAsset(
|
||||
Path.Combine(folderPath, "ZenjectReflectionBakingSettings.asset"), config);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user