Skip to content

Commit

Permalink
CurrentFolderGetter.csにおける、ScriptableObject.CreateInstanceの未使用による警告を抑制
Browse files Browse the repository at this point in the history
  • Loading branch information
esperecyan committed Sep 25, 2018
1 parent 7aaf8b5 commit c1e10fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Editor/CurrentFolderGetter.cs
@@ -1,4 +1,5 @@
using System.IO;
using UnityEngine;
using UnityEditor;

namespace Esperecyan.Unity.VRMConverterForVRChat
Expand All @@ -19,7 +20,7 @@ internal static string Get()
if (string.IsNullOrEmpty(CurrentFolderGetter.currentFolderPath)) {
CurrentFolderGetter.currentFolderPath = Path.GetDirectoryName(
path: AssetDatabase.GetAssetPath(
assetObject: MonoScript.FromScriptableObject(scriptableObject: new CurrentFolderGetter())
assetObject: MonoScript.FromScriptableObject(scriptableObject: ScriptableObject.CreateInstance<CurrentFolderGetter>())
)
);
}
Expand Down

0 comments on commit c1e10fe

Please sign in to comment.