- Home /
a way to monitor data and functions being called?
Sometimes when you try some different code written by someone else it is very unclear and it is nice to see the names of what functions are being called when you click on different things.
Is there a way to display that in the error screen?
Answer by Paulo-Henrique025 · Feb 06, 2013 at 07:39 PM
You can Debug using MonoDevelop or just put Debug.Log("Something Called here") inside the functions.
Thanks, I could do that already as you say!, I just had a complicated demo and I wanted to see what functions were being called when I click on interactive things because the code is huge so finding them is difficult. I mean I didn't know what functions were being called so I wanted to see in unity, perhaps I would have to find every function and print the name of the function inside it encode.
I'm sure you can analise the call stack using mono, that would make you life easier :)
oh call stack, that's a new one for me! thanks! i found this about them. shame i like N++ so much! http://docs.unity3d.com/Documentation/$$anonymous$$anual/Debugger.html
Answer by Jeremy Hindle · Feb 07, 2013 at 06:10 PM
If you are a Unity3D Pro License holder you can also use the Profiler window(especially if you are making a resource usage comparison between your own code and someone else's) and make sure you have the "Deep Profile" option selected.
It will list all the resources used when you do something in your game alongside the function being called.
But if the function is just a callback, called only 1x, it will appear in the profiler?