Selection System On/Off
During gameplay, there are times when the selection system needs to be completely turned off and then turned back on.
One example is when a character enters indicator mode to use a skill. (If you use a skill while the selection feature is enabled, a bug will occur where the enemy gets selected at the same time as the skill is used.)
Below is an explanation of how to integrate the selection system with other systems by toggling it on and off.
To enable or disable player input for selection:
To enable or disable player input for group:
Enabling/Disabling Selectable for Specific Objects
Depending on the project, you may need to toggle the selectable of specific objects.
For example, objects hidden by the fog of war should have their selectable disabled.
You can toggle the enable
value of a component that implements ISelectable.
ℹ️ Alternatively, you can use the CanBeSelected
property of ISelectable
Last updated