I have a class like this:
public class NoiseMap : ScriptableObject
{
public string Hello()
{
//...
}
}
Now I am building its custom editor:
[CustomEditor(typeof(NoiseMap))]
public class NoiseMapEditor : Editor
{
public override void OnInspectorGUI()
{
serializedObject.Update();
// How to call Hello() ???
serializedObject.ApplyModifiedProperties();
}
}
I would like to get the value of the method Hello
. How could I achieve this?