Forum begins after the advertisement:
-
::Problem: All values are still 0 for Slot Indexes
If the values are 0 in the inspector when the game isn’t running, but update once the game runs, it is working as intended, since the functions that update the slot indexes only work at runtime.
Check that you have assigned the right toolSlots and itemSlots values in the inspector of UIManager. Make sure that the AssignSlotIndexes() function in UIManager is correct as well.
::Wait, so the indexes are only changing its values only when the game runs? Not when isn’t running?
::Yup, that is what Jonathan is saying. You can update it when it isn’t running as well, but it will be overwritten by updates when the game is running.
Advertisement below: