- Home /
How would I go about creating a custom Unity Event in a Custom Unity Editor/Inspector?
For custom Editor Scripts I have it set up where you can add and remove from list of UnityEvents. These events can be directly accessed through:
TwitchConnect.TwitchCommandEvents[i]
How would I go about displaying a field for this?
Also the Line of code is apart of a larger group like this:
for(int i = 0; i < twitchConnect.TwitchCommandChat.Count; i++){
GUILayout.BeginHorizontal();
GUILayout.Label("Command:");
twitchConnect.TwitchCommandChat[i] = //continues next two lines
GUILayout.TextField(twitchConnect.TwitchCommandChat[i], 100,
GUILayout.MaxWidth(110));
//twitchConnect.TwitchCommandEvents[i]
GUILayout.EndHorizontal();
GUILayout.Space(10f);
}
Comment
Your answer
Follow this Question
Related Questions
Get if inspector field labels are on separate line 1 Answer
How can I create a list of preset class/objects to be used in the editor 1 Answer
Custom Editor Script resets values on Play 1 Answer
Certain components do not update in-game until refreshed in inspector 0 Answers
Some public attributes not shown in inspector, default references 3 Answers