- Home /
Question by
ShockwaveTeam · Jun 17, 2020 at 07:23 AM ·
c#assetwatercodepagestandard-assets
Standard assets water bug
So, I installed the standard assets pack, added a water prefab, and got this error:
Assets\Standard Assets\Utility\SimpleActivatorMenu.cs(11,16): error CS0619: 'GUIText' is obsolete: 'GUIText has been removed. Use UI.Text instead.'
Here is the specific code where "GUIText" appears
// An incredibly simple menu which, when given references
// to gameobjects in the scene
public GUIText camSwitchButton;
public GameObject[] objects;
I tried changing it to "UI.Text" and got this error:
Assets\Standard Assets\Utility\SimpleActivatorMenu.cs(11,16): error CS0246: The type or namespace name 'UI' could not be found (are you missing a using directive or an assembly reference?)
I have no idea what to do, if the solution Unity recommends isn't a solution that works. If someone knows how to fix this, please give me the solution, because I can't run my game until this error is fixed.
Comment
change UI.Text to UnityEngine.UI.Text, i have never worked with guitext but there is a chance that you will have to rewrite part of the code
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Is it possible to set a Mesh Filter's Mesh property to quad in code? 1 Answer
Blender animated water to unity. 2 Answers