- Home /
Question by
rocksean30 · Oct 09, 2011 at 09:58 AM ·
console
Console does not prints the same message again
My script prints only once no matter how many times it hits the floor
function OnCollisionEnter (theCollision : Collision) { Debug.Log(" Hit !! " + theCollision.gameObject.name ); }
So i updated the code and it worked !
var countofhits = 0; function OnCollisionEnter (theCollision : Collision) { countofhits++; Debug.Log(countofhits + " Hit !! " + theCollision.gameObject.name ); }But i dnt knw why this happened can anyone explain ?
Comment
Answer by SarperS · Oct 09, 2011 at 02:41 PM
You probably left the "Collapse" button on the Console Window pressed. Try toggling it by pressing on it once more. What it does is it "collapses" the same messages into a single message.
Your answer
Follow this Question
Related Questions
compilation error 1 Answer
Developing XBox 360 games? 2 Answers
How to show debug console on screen (Unity 4) 2 Answers
What's the matter with my Cube.fbx? 0 Answers
Fake developer console 1 Answer