- Home /
How to determine OnEnable execution order for components of the same type?
I have a
SlotManagerclass that contains aListof slots.I have 5 copies of a
Slotclass thatOnEnable, adds itself to the slotsList.Each
Slotis attached to agameObject. I've named thegameObjectSlot1,Slot2,Slot3, etc etc However, theSlot1gameObjectis not the firstSlotclass to add itself to the list.What determines the execution order for components of the same type?
can I control the execution order?
For now I've manually renamed and reorganized the
gameObjects. But I can see this being less than ideal in the future.
Your answer
Follow this Question
Related Questions
Is it Possible To make inv system 2 Answers
Inventory System - Find Empty Slot 2 Answers
Item and Inventory for a RPG game 2 Answers
making prefabs at runtime? 2 Answers
Drag and Drop icons into slots 1 Answer