- Home /
Question by
junglemason · Oct 05, 2011 at 10:47 PM ·
debug
Can I output the name of the current class and/or function?
Is there a way in Unity script to log the current execution context using Debug.Log()?
Just for example, here's how it's done in Objective-C:
NSLog(@"%s %d %s %s", __FILE__, __LINE__, __PRETTY_FUNCTION__, __FUNCTION__);
I'd like to know how to do it in JavaScript and C# (if it's possible).
Comment
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Certain gameobjects not in mobile build 1 Answer
Can someone help me fix my Javascript for Flickering Light? 6 Answers
Create a Debug.Log() system similar to Console.WriteLine() 1 Answer
this.gameObject null reference exception 3 Answers