Is there any way you can make a button that is placed in 2D space and not the canvas?
I am working on an aplication for a project in my school and I got up to the point where I need to make a button in space. If I make it in the canvas i will always see it on the screen at that same place. I am just looking to put a button in the space. Is there any way I can do it?
Answer by Jawchewa · May 28, 2017 at 03:52 AM
The easiest way to put a button in world space, instead of always on the screen, is to make a canvas that has it's renderMode set to world space. This basically will let you put any UI element into world space, and have it function basically the same as if it were on the screen. You will have to make sure that it is scaled correctly, and you might also have to write a basic billboarding function to make it rotate towards the player. Here are some basic instructions to help you get set up:
Your answer
Follow this Question
Related Questions
Cascading dropdown menus 0 Answers
how would i change the colour of an image once I've hovered over a button? 0 Answers
EventTrigger on button not recognizing instantsiated player 1 Answer
EditorWindow: Toolbar - Button cross position 0 Answers
OnLevelWasLoaded deprecated, trying to setup my buttons 1 Answer