fixed stats box on RTS Game camera
Hi, I am kind a new on unity.I am trying to make a RTS game like age of empires.So camera follows mouse pointer.Everything works well with camera. Now I want to right click on an object (a building in game) , open a window and display some command buttons like demolish building etc. My first choice was using canvas panel and buttons.But my problem is , after displaying canvas panel if i move mouse to another location canvas panel coming with mouse.I need a fixed window near object not moving with camera. Second I tried GUI.Box but same result here. I can try inside OnGUI method to refresh transform position of panel by camera or mouse movents.But there should be a simpler way. So please advise me a fixed stats box but not dialog.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612080413im_/https://answers.unity.com/themes/thub/images/avi.jpg)