I wanna the button can be turning to the unable state, still showing but can't click by mouse
How to make the choice button unable but showing
-
- support
- Posts: 275
- Joined: 01 Aug 2020 08:25
Re: How to make the choice button unable but showing
On the top of the Choice Handler script when you create a new Choice Button, you can check Disable Interaction. If you want to control this in a Naninovel script, you can attach a Custom Variable Trigger component and on the Bool Variable Value Changed event you can set ChoiceHander.SetInteractable by dragging the choice handler button object into it. More information on Custom Variable Trigger component can be found here: https://naninovel.com/guide/custom-vari ... e-triggers
-
- Posts: 9
- Joined: 27 Jan 2021 04:17
Re: How to make the choice button unable but showing
Is the default choice button which created by commend "@choice" can be controled by Custom Variable Trigger component?
-
- support
- Posts: 275
- Joined: 01 Aug 2020 08:25
Re: How to make the choice button unable but showing
The default ChoiceHandlerButton is stored in Naninovel > Prefabs > ChoiceHandlers, however it is not recommended to change any of the default prefabs as breaking them might cause operation issues. When you create a new Choice Button via the Asset Menu, it is the same button design as the default one.