{ GUITEXT IS OBSOLETE solution in Unity }

Опубликовано: 19 Июнь 2020
на канале: GDT Solutions ES
46,159
1.6k

The GUIText is obsolete error with the message "GUIText has been removed. Use UI.Text instead", can appear when importing some old Assets. This video is a remake from the one that is in my main channel. We see a quick way to solve the GUIText is Obsolete error in Unity.

In this case the error appears when importing the Standard Assets and in the following instruction:

public GUIText camSwitchButton;

This means that one of the classes defined within Standard Assets has become obsolete and has been removed, we have to go to the object declaration and replace the GUIText class with the Text class that is within the namespace UnityEngine.UI.
We can replace the instruction directly with:

public UnityEngine.UI.Text camSwitchButton;

or import the namespace UnityEngine.UI (by placing using UnityEngine.UI; at the top of the script) and then replace it with the instruction:

public Text camSwitchButton;

Hope you find it useful!

____________________________________________________________
LINKS

Portfolio: https://gamedevtraum.com/en/portfolio...

LinkedIn:   / gamedevtraum  

Downloads: https://gamedevtraum.itch.io/

Contact:   / gamedevtraum  
____________________________________________________________

#EN


На этой странице сайта вы можете посмотреть видео онлайн { GUITEXT IS OBSOLETE solution in Unity } длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь GDT Solutions ES 19 Июнь 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 46,159 раз и оно понравилось 1.6 тысяч зрителям. Приятного просмотра!