I tried to implement my custom editor script with a reference to another task I created. But I do not know how to draw these tasks correctly. I tried to use
MonoScript.FromMonoBehaviour to get the class value but it was not working.
Here is my code and EnemyMove is my custom action task. If I want to draw the editor just like normal(with a select button and task name under), what method should I use to achieve that
MonoScript.FromMonoBehaviour to get the class value but it was not working.
Here is my code and EnemyMove is my custom action task. If I want to draw the editor just like normal(with a select button and task name under), what method should I use to achieve that
C#:
public EnemyJump jumpToStartPoint; //EnemyJump is a action task
//Here is my code trying to implement the draw call
customClass.jumpToStartPoint = EditorGUILayout.ObjectField("Script Name: ", MonoScript.FromMonoBehaviour((EnemyJump)customClass.jumpToStartPoint), typeof(EnemyJump), true) as EnemyJump;