C# visual studios

what is difference between debug.log and console.writle for printing a statement . Why do we use debug.log when using unity??

Hi Naman,

Welcome to our community! :slight_smile:

Debug.Log logs a message into the console in the Unity Editor. Console.writle does not exist. If you meant Console.WriteLine: That method refers to C# Console Applications and does not exist in the context of Unity.

Did this answer your question?


See also:

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms