GetBool is not allowed to be called from a ScriptableObject constructor (or instance field initializerCalled from ScriptableObject 'FGConsole'.UnityEditor.EditorPrefs:GetBool(String, Boolean)
ScriptInspector.FGConsole:.cctor() (at Assets/Plugins
我有一个字符脚本对象,其中有几个方法。比如GetDate,GetAge (我不在这里展示)。我已经在那里创建了一个构造函数,但是我不知道如何通过构造函数创建这个ScriptableObject的实例。我尝试过在检查器中键入值,但没有在构造函数中运行这些方法。isMale = _isMale;
// and all the other functions like