Hello everyone !
I am new at using Unity and I am trying to make a little 2D game to begin with… lot of work but really fun ! I am now understanding more and more and getting better with the scripts but I have three questions that would help me a lot clear out some confusion. I tried to search for answers but couldn’t find very clear ones. Thank you in advance !
-
Should I create new objects (in the Hierarchy menu) every time I want to add something to my game or can I just add them directly from the assets to the already existing objects ? For example, I created a TMP Button and I wanted to add a click sound on it and also switch pictures when clicked. So I created a new object in Hierarchy for the audio and also a new object for the switching picture. But I had some problems with the picture during the script writing so at the end I added the picture to the Button directly from the asset menu and it works fine. It is an OK thing to do ? Or should every element in the game be first added as a new created object in Hierarchy ?
-
What are the principal differences between Image (UI) and Sprites and when should I use each one at best ? I understood (correct me if I’m wrong) that sprites are used for elements that have some movement but I am always a bit confused about which one to use in different scenarios.
-
Aside from background, when are Panels in good use ?
Thank you in advance !!