Basically i’m trying to use the cool feature UnityEvents have in the inspector where you can drag objects into it and call functions or set variables in connected components but in reverse. I want to select variable and have it return the variable.
public UnityEvent var; //In the inspector you set up what variable you want to get
myText.text = var.ToString();
This is literally just made up code but I hope it gets the point across.