There are objects a,b,c,d,e. There is also a widget UI button for each object, but if the object is not in the world, destroyed, or invisible, I try to disable the button and activate it if it is in the world. How can I make this?
ex1) If object b is not present, button b is disabled.
ex2) If object c exists and disappears, button c is also activated and changed to inactive.
Have the objects create and add the buttons. No object = no problem. And if the object gets destroyed, it can remove the widget. Would that work for you?