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

Unity 4.6 SpaceShooter Tutorial

Discussion in 'Immediate Mode GUI (IMGUI)' started by Games1, Dec 2, 2014.

  1. Games1

    Games1

    Joined:
    Nov 30, 2014
    Posts:
    3
    I am just finishing up the SpaceShooter tutorial and am down to creating the scoring feature. the tutorial syas to go to the Hierarchy tab and select the GUIText. There not a GUItext option on my 4.6 version only text and it wont copy over to the score text portion of my gamecontroller in the inspector . Has anyone encountered and overcame this?

    Thanks,
    Bruce
     
  2. capiers

    capiers

    Joined:
    Dec 3, 2014
    Posts:
    1
    Create an Empty "GameObject" then select Add Component/Rendering/GUIText in the inspector. I noticed that GUIText disappeared from the "Create" menu in the 4.6 update.
     
    Last edited: Dec 3, 2014
  3. sqeekypotato

    sqeekypotato

    Joined:
    Feb 9, 2015
    Posts:
    3
    So I was able to add the GUI text but it is a child of Canvas and adds Event system as well. I don't mind this so much but I can't seem to get the score moved from the center of the screen. Selecting Score Text in the Hierarchy seems to allow it to move around the canvas but the canvas is way off in the middle of nowhere in the Scene view (and perpendicular to the game view as well). Is there an update on how to arrange this with the new version of Unity?

    Thanks
     
  4. sqeekypotato

    sqeekypotato

    Joined:
    Feb 9, 2015
    Posts:
    3
    Also, I can't drag the scoreText onto the Game Controller Script for some reason
     
  5. Adam-Buckner

    Adam-Buckner

    Joined:
    Jun 27, 2007
    Posts:
    5,664
    Don't confuse GUIText with the new UI Text component.

    Solutions are described in this thread: http://forum.unity3d.com/threads/space-shooter-tutorial-q-a.222119/

    Either use the GUIText component from the add component menu on a new empty game object and follow the tutorial as it stands, or convert to the new UI tools as stated in that thread.

    For feast and regulate feedback on the Space Shooter project, comment in that thread.