0 votes
by (8.2k points)

What is the problem with Debug.log() there are some errors while I am using debug.log?

 error CS0104: 'Debug' is an ambiguous reference between 'IJnityEngine.Debug' and 'System.DiagnosticsDebug

1 Answer

0 votes
by (8.2k points)

please change your "Debug.log(........)" to "Debug.Log( .........)".
change your external scripting tool to visual studio in unity
( edit -> preferences -> Editor tools -> External script editor =   visual studio / vs code)

using System. Collections;

using System. Collections.Generic;

using UnityEngine;

public class New8ehaviourScript : MononoBehaviour

// Start is called before the first frame update

{

    void Start()

    {

        Debug. Log( "hello I am Amarjeet Kumar");

    }

// Update is called once per frame

void Update()

    {

       

    }

}

TechXR runs courses in AR / VR / Metaverse / Game Development. Some of the popular Q&A in our courses are available here for easy discovery.

113 questions

117 answers

58 comments

105k users

...