Classic window menuin Unity?
Hello all, I am developing a game that start with a normal window, then goes to fullscreen once the start button is pressed. Everything works, but for windows version I would like makea class window toolbar menu (file, edit, etc). I know it is nor important, but it would be cool to have File->exit or Player->high score or something like that. Can Can someone tell me if this is possible in Unity using C#? I had a look in the UI section, but it seems to be no toolbar. Thanks a lot.
on unity u use C# or javascript for make games
I know, but it is not my question :)
If you are looking for the "native" toolbar you see in several Windows softwares, I don't think it's possible with Unity only. But I've seen several questions about embedding a Unity game inside a WPF application. $$anonymous$$aybe, it could be worth it to look for these questions.
Answer by MaxGuernseyIII · Sep 20, 2017 at 09:22 PM
I doubt there's a built-in, or even off-the-shelf, analog to MenuBar with which you will be happy. If you absolutely need the look and feel of a native tool strip or menu bar, you're going to have to do something pretty funky. @Hellium's suggestion in the comments is a decent option.
If you just want it to feel like a menu bar, in general, you can make something like that on your own but I mean you'll really have to make it, yourself. You'll have to define what a menu bar, menu, and menu item is, probably by writing a script for each concept and creating at least one prefab associated with each script.
Alternatively, you can try to figure out how to do something terrifying, like writing a native C++ thing that accesses the appropriate APIs or something. Any way you slice it, there's going to be a fair amount of cost and possibly some risk.
Sometimes you gotta let those hard-to-reach chips go.
Your answer
Follow this Question
Related Questions
Moving GameObject a specific distance in the Z direction and back again - regardless of rotation 1 Answer
Two stupid questions about calling a method from another script (C#) 2 Answers
OnClickListener added but on vacation? 0 Answers
How do I remove carriage return on TextAsset? 0 Answers
warring cs0414 1 Answer