In this section we'll create some more interactive gui elements inside our custom editor script
We'll use GUILayout.Button(); to create a button
Notice: This has a bunch of override's that you can look into based on your needs.
For additional reference click here
Now inside our editor script we'll add
GUILayout.Button("Click Me!", GUILayout.Height(40));
to create a button with a height of 40 pixels.
So our result will look something like this. Right now the button just sits there and does nothing when we click on it. Let's work on that functionality.
We'll use GUILayout.Button(); to create a button
Notice: This has a bunch of override's that you can look into based on your needs.
For additional reference click here
Now inside our editor script we'll add
GUILayout.Button("Click Me!", GUILayout.Height(40));
to create a button with a height of 40 pixels.
So our result will look something like this. Right now the button just sits there and does nothing when we click on it. Let's work on that functionality.