Hello everyone I have a very simple question about Debug.Log(). how can I get Unitys console to only show the variable once instead of the log looping. I want to use a non static variable if possible.
asked Feb 25 '10 at 01:59 AM
place it in
answered Feb 25 '10 at 02:04 AM
If you have to call it in function Update, if you can call it in the first frame, you could do something like
(This would have the additional merit that you could just set debugged = true when you're finally building the thing, as Debug can be a performance-drag)
If you need it in a later frame, after some event, you'd have to fiddle a bit with where you set the debugged-variable, but basically this should do the trick...?
answered Feb 25 '10 at 04:56 AM