Devlog 4
Made by: Stefan Vandenboorn
What is the problem I want to solve?
How do I create an animal selection menu that is easy to understand for children and also easy to keep adding on without changing anything in the code. The reasoning behind this so in the future we only have to create animals, add them to the project and drag them to the correct spot and they can be used inside the game.
How will/did I solve this:
(Lab & Library)
I've used my research I've done in the previous devlog to create the animal selection panel before you can select which animal you want to create and edit before you get to see the animal editor first.
Devlog 3So in the end the way I've set up the UI element in the customization scene looks like this:
Now that I've set up the UI display it was time to create the script for it to make it function.
The way I've set this up is quite simple, I've used the reference in the scene where the animal I want to edit gets spawned. Then I reset its position so they will be displayed in the center of the screen just like I've done in previous devlog. In Unity itself on the images of the animals you can select I've added with a button that has a reference to the animal I want to spawn in. Once the button is pressed the function inside that script gets executed, spawning in the animal, disabling the animal selection window and enables the turning and animal editor UI elements.
What is the result?
What is the quality of the result?
We are quite happy with the end result of the animal selection scene. The code is modular and compact. I've explained this code to my teammates and they all agree it works very well for this project and they were happy that it was that easy to expand the selected animal list without having to change anything in the code.
What is the next step?
Now that I've implemented all the UI elements we need for every scene, including my teammates tasks in Customization scene, I will try to help out my teammates with problems they are currently trying to solve and help out with some of the documentation that still needs to be made that has to be delivered at the end of the project.
Last updated