- Home /
This post has been wikified, any user with enough reputation can edit it.
How do you debug a script in Unity3D?
Q: How do you debug a script in Unity3D?
Explanation: I want to find out some procedures to find and reduce the number of scripts before asking the question on Unity Answers. I want to know some common ways to find out what is wrong with a script.
This is a reference question for future question posters.
Comment
Best Answer
Answer by EggQuiz857 · Jan 04, 2015 at 10:55 PM
Try adding some
print("It worked");
That will tell if that part of the script was called. it should show up in the console in the bottom. Works grate for something like this.
function Whatever()
{
if (Whatever == true)
print("Whatever is true");
}
Answer by tanoshimi · Jan 04, 2015 at 10:54 PM
Well you could start with:
http://unity3d.com/learn/tutorials/modules/beginner/scripting/monodevelops-debugger
http://docs.unity3d.com/432/Documentation/Manual/Debugger.html
Your answer
