Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Problem with one of the scripts that uses GUI from the standard assets

Discussion in 'Assets and Asset Store' started by tcmagwa, Mar 30, 2021.

  1. tcmagwa

    tcmagwa

    Joined:
    Jan 28, 2021
    Posts:
    8
    i would like assistance on this error from one of standard assests scripts. i don't know what is meant by "use UI.Text"

    upload_2021-3-30_21-4-36.png
     
  2. BluUnicorn

    BluUnicorn

    Joined:
    Aug 25, 2019
    Posts:
    1

    if you add:

    using UnityEngine.UI;

    in your declarations and change the:

    public GUIText camSwitchButton;

    in the public class to

    public Text camSwitchButton;

    that error should go away