使用.Net JSON的时候,经常会使用到Concole.Write 和Concole.WriteLine。
引用using Newtonsoft.Json;
Unity 5.6 出现错误。
The name `Console' does not exist in the current context
摘抄 参考资料1 一段内容。
Unity中编程的一大优点是它使用(大多数)标准的.NET实现。这意味着您可以找到许多针对.NET编写的第三方代码,但不一定是Unity,但仍将其并入应用程序。这种代码通常使用System.Console.Write
或System.Console.WriteLine