playMaker

Author Topic: GUIText from Tutorial  (Read 1477 times)

2h

  • Playmaker Newbie
  • *
  • Posts: 4
GUIText from Tutorial
« on: June 03, 2016, 11:47:59 AM »
Hi, I am doing the trigger tutorial on the Youtube channel. I am using Unity 5.

My collisions are working correctly. I have a difficulty with the SetGUIText function though.

I have created an empty game object, attached a GUIText component to it. However this does not show up on my screen.

I have a main camera by default and also I have a camera on my FPS controller (from Standard Assets). When I deactivate the FPS controller and use the Main camera, I see the GUIText on screen. However, when I activate the FPS controller and deactivate the Main Camera(only one camera allowed) the text vanishes.

Can someone advise how I can use the FPS controller and still see the GUIText.

Is it possible to use a Canvas with a text component from Unity 5 instead? Is there a built in function in Playmaker for accessing this?

Many thanks,
2h.

NovaSr

  • Playmaker Newbie
  • *
  • Posts: 1
Re: GUIText from Tutorial
« Reply #1 on: June 22, 2016, 02:44:21 PM »
Hi 2h,  I encountered the same issue while following the tutorial video and using Unity 5. There may be other solutions but the way I was able to make it work was to make sure that the "Layer" for my GUIText object was set to "UI". This control is in the upper right hand side of the Inspector. I hope that works for you!