在 Unity 中,当我编写 Debug.Log(" ") 时,它有一个错误说 UnityEngine.Log 和 System.Log 之间存在差异.我该如何解决? [英] In Unity when I write Debug.Log(" ") it has an error saying that there is a difference between UnityEngine.Log and System.Log. How do I fix this?

查看:88
本文介绍了在 Unity 中,当我编写 Debug.Log(" ") 时,它有一个错误说 UnityEngine.Log 和 System.Log 之间存在差异.我该如何解决?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

它说 UnityEngine.Log 和 System.Log 之间存在不明确的区别,并且不会打印任何内容.我该如何解决?

It says there is an ambiguous difference between UnityEngine.Log and System.Log and won't print anything. How do I fix it?

很抱歉人们不喜欢我的问题.我只是一个寻求帮助的新游戏开发者.

I am sorry that people didn't like my question. I am just a new game dev looking for help.

推荐答案

最简单的解决方案就是始终在该脚本中输入:

Your simplest solution is just to always type, in that script:

        UnityEngine.Debug.Log("yo !!");

一般来说,如果它告诉您等等等等……AAA 和 BBB 之间的区别……"

In general if it tells you "blah blah .. difference between AAA and BBB ..."

只需添加 AAA.或 BBB.在有问题的命令前面!

Simply add either AAA. or BBB. in front of the command in question!

(通常是您想要的Unity".)

(It is usually the "Unity" one you want.)

在您更熟悉它之前,我暂时不会费心去理解它.

I wouldn't bother trying to understand it more than that for now, until you are more familiar with it.

它与您在脚本顶部使用使用..."编写的内容有关.

It relates to the things you write up the top of the script with "Using...".

这篇关于在 Unity 中,当我编写 Debug.Log(" ") 时,它有一个错误说 UnityEngine.Log 和 System.Log 之间存在差异.我该如何解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆