Unity version 2021 fix + Added new feature
Opened this issue · 0 comments
Deleted user commented
Needed to modify the plugin for my game, so here it is. Might not be perfect, but normally it's working.
- Fixed obsolete code so it now works with Unity 2021.1.16f1 (PrefabType, etc.)
- Added a secondary part in the RefreshCandidates functions to search the scene GameObjects (allow to get buttons from prefabs elements too)
- Added a new component script (ButtonClickSoundRunTime), that allows the user to add/remove/refresh the button list at run-time if needed (called through script by using the namespace Assets.Plugins.ButtonSoundsEditor and ButtonClickSoundRunTime.instance)