Are there any methods that are called before and after buttons / input field are displayed ?
Posted: Mon Nov 16, 2015 2:25 pm
Hi ,
My team is doing an optimization pass on UI and its decided to enable raycasters only when any interactable UI object is displayed. For buttons I am aware that ShowResponses get called when buttons are displayed but is there any other function that gets called once the responses go away ?? Also are there any functions that gets called when input field is displayed and after it goes away ? Currently I am handling this in Dialogue System by using SendMessage in every conversation . It would help if I handle it once in code instead of using SendMessage.
Thanks.
Nishant
My team is doing an optimization pass on UI and its decided to enable raycasters only when any interactable UI object is displayed. For buttons I am aware that ShowResponses get called when buttons are displayed but is there any other function that gets called once the responses go away ?? Also are there any functions that gets called when input field is displayed and after it goes away ? Currently I am handling this in Dialogue System by using SendMessage in every conversation . It would help if I handle it once in code instead of using SendMessage.
Thanks.
Nishant