How to make the choice button unable but showing

Posted: 12 Feb 2021 10:48
by dxxds

I wanna the button can be turning to the unable state, still showing but can't click by mouse


Re: How to make the choice button unable but showing

Posted: 12 Feb 2021 11:03
by idaot

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

Image


Re: How to make the choice button unable but showing

Posted: 12 Feb 2021 14:21
by dxxds

Is the default choice button which created by commend "@choice" can be controled by Custom Variable Trigger component?


Re: How to make the choice button unable but showing

Posted: 12 Feb 2021 17:52
by idaot

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.