Unity2020报错:GUIText has been removed. Use UI.Text instead

1.问题

Unity2020 在 Play Scene 的时候报错如下:

Assets\Standard Assets\Utility\SimpleActivatorMenu.cs(11,16): error CS0619: 'GUIText' is obsolete: 'GUIText has been removed. Use UI.Text instead.'

Unity2020报错:GUIText has been removed. Use UI.Text instead

 

 

2.解决方案

双击上图中的红框,Unity会自动跳转到 Visual Studio,修改如下两个位置,

Unity2020报错:GUIText has been removed. Use UI.Text instead

 

 修改如下:

Unity2020报错:GUIText has been removed. Use UI.Text instead

 

 然后保存。

 

上一篇:2022-2023学年英语周报七年级第18期答案及试题


下一篇:[ Android实战 ] android query: BufferQueue has been abandoned 问题解决