Bringing up the coordinates

After pressing the play button the coordinates disappear. This seems to be the case for you as well. However you do something and the coordinates show up. May I know what you do? Thank you.

Hi Guybrush,

Have you already compared your code to the Lecture Project Changes which can be found in the Resources of this lecture? If so, have you already tried to add Debug.Logs to your code to see what is going on during runtime? Are there any error messages in your console?

Hi Nina,
I don’t have any error in the console. And no, I did not check the Lecture Project Changes. I’ll check them to see if there are any additional changes.

Hi @Guybrush,
We disable the coordinate labels in Awake(), so they don’t show up in play mode by default.
Check the line where we set label.enabled = false.

To bring them up in play mode, we have the ToggleLabels() method that listens for a key press. In my project, I set this to the ‘C’ key.

I hope this helps.

Hi Gary,
Thanks a lot for you help.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms