Thursday, 23 January 2020

More UI work

Still working on re-creating the UI, the next stage is adding the "carousel" style inventory. This works by having x amount of objects positioned in a circle and revolve based on user input. Creating a 3D effect where all items are viewable, whilst containing them in a certain space on screen.



To achieve this same affect, more advanced programming knowledge was needed such as Raycasting. After some research I found how to get it working with some online help. I've now managed to expand on the code to allow me to extrapolate information I need from script.
The above script I made allows the gathering of information I need and then compares this using a switch case to create an "inventory" list

The system is dynamic enough for me to populate it more and still derive any and all information I need to display on the UI elsewhere such as; names, descriptions and stock amount.



Currently its still a WIP, I need to get the view alignment better and then resize everything on the UI canvas, majority of the text is too big at the moment aswell. I also need to play more of the game to see exactly what items I want available at the given stage I plan to work towards and then implement all their entires into the code.

No comments:

Post a Comment