'Debug' does not contain a definition for 'log'

This is the code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PrintToConsole : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
Debug.log(“Ate … Too Much Code”);
}

// Update is called once per frame
void Update()
{
    
}

}

And I receive this error;
Assets\Scenes\PrintToConsole.cs(10,14): error CS0117: ‘Debug’ does not contain a definition for ‘log’
Anyone know how I can fix this?
Thanks

Found my error log should be Log.

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

Privacy & Terms