diff --git a/Editor/Settings/ScriptableSignleton.cs b/Editor/Settings/ScriptableSignleton.cs index cf2ee1b..903f802 100644 --- a/Editor/Settings/ScriptableSignleton.cs +++ b/Editor/Settings/ScriptableSignleton.cs @@ -59,9 +59,10 @@ namespace HybridCLR.Editor.Settings protected static string GetFilePath() { return typeof(T).GetCustomAttributes(inherit: true) - .Cast() - .FirstOrDefault(v => v != null) - ?.filepath; + .Where(v => v is FilePathAttribute) + .Cast() + .FirstOrDefault() + ?.filepath; } } [AttributeUsage(AttributeTargets.Class)]