Fortune Wheel in Unity (Simple way to adding into your game)
- Create Page for FortuneWheel
- Add component
SpinPageControlleron it - Create child into that page with name Wheel that will be container for rewards sectors
- Create sectors into Wheel gameObject with component
SpinSectorController - Create SO : Assets->Create->Configs-Spin->SectorsTypeSettings
- Fill it with some needed reward types (Into
RewardTypeyou can edit rewards on what you need) - Create SO : Assets->Create->Configs-Spin->SectorsDataSettings (Into it fill values of spin sectors)
- Fill fields into SpinPageController object
For optimizing time of creating FortuneWheel you can use SpinSectorCreator, in context menu exist method CreateSectors
-
Into SpinPageController exist variable _isClockwiseDirection which needed for change rotate direction (If you add sectors by counterclockwise direction, than uncheck this variable into
SpinPageControllerinspector) -
Count of rewards and their values settings into
SpinDelegatorconstructor