C sharp - A silly bug of a noob :( I need help. error CS0117: "Debug" does not contain a definition for "log"

 
Vista:

A silly bug of a noob :( I need help. error CS0117: "Debug" does not contain a definition for "log"

Publicado por Fermin (1 intervención) el 23/10/2019 01:45:01
Hi, I'm following a tutorial (a bit old) and I have a problem in the following script:

1
2
3
4
5
6
7
8
9
10
11
using UnityEngine;
 
public class Player_Colosion : MonoBehaviour
{
     void OnColissionEnter()
    {
 
        Debug.log ("We hit something");
 
    }
}

The version of my unity is 2018.4.11f1 (64-bit) and im following this tutorial:

I don't know if it's my mistake or if debug.log is no longer used like that.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
sin imagen de perfil
Val: 326
Plata
Ha mantenido su posición en C sharp (en relación al último mes)
Gráfica de C sharp

A silly bug of a noob :( I need help. error CS0117: "Debug" does not contain a definition for "log"

Publicado por miguelZ (143 intervenciones) el 23/10/2019 17:20:06
When you program in C# and want to display some text, the used method is:

Console.WriteLine("bla, bla,");
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar