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?

thank you, Should work now

–

New link https://youtu.be/baI47WVMXYU

–

1 Answer

1

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:

https://docs.unity3d.com/Manual/HOWTO-UIWorldSpace.html

No, unfortunately it still doesn't.

–