Debug.Log Not Working?

I checked that Collapse and Clear on Play are not checked, and that the console can only display messages and errors(not warnings). When it didn’t appear on the console at the bottom of Unity, I figured it may have been my script:

function Update(){
     if(controller.isGrounded){
          Idle();
     }
}

function Idle                    () {
    if(controller.velocity.sqrMagnitude >= 0.0){                                                    //Speed intervals for basic animation changes...
        if(controller.velocity.sqrMagnitude <= minWalkVelocity){
            print("Idel...");                                                                    //If the player is still or approaching the walk speed, idle
        }
    }
}

Any help on why this is happening will be nice. Thanks! :slight_smile:

Is it intention you use print instead of Debug.Log?
Furthermore, if Debug.Log doesnt output anything to the console than your conditions are never met.

My mistake, I was using Debug and tried print and it didn’t work either. Are you sure it’s not because the Update is calling a function?

As of update calling a method, no worries, theres no problem in it.

However, you have 3 conditions (which I quoted above) which need to be met (so true) in order for the Debug.Log to execute. So one of those conditions returns obviously false, check which one.

I was working with a custom character controller and it needed gravity to work! :stuck_out_tongue: I guess I fixed it. Thanks anyway Sharp! :slight_smile: