Thanks for the follow up.
Regarding “CheckCSharpEvent”, it only works with events of delegate type System.Action or System.Action<T>. The entries in the menu being disabled, means that none of the types in the PreferredTypes List (which is shown in the menu), has any public event System.Action.
If for example though, you create a class like so:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
publicclassMyExampleType:MonoBehaviour{
publicevent System.Action onEvent;
voidUpdate(){
if(Input.GetKeyDown(KeyCode.Space)){
if(onEvent!=null){
onEvent();
}
}
}
}
..and then add this “MyExampleType” in the PreferredTypes List, you will be able to see and select “MyExampleType.onEvent”, in the “CheckCSharpEvent” selection menu.
Let me know if you need any further clarification with this 🙂
Thank you.