Is it possible to invisible the GUI when zoom out (or get distance) from the model?

Hi everyone

is it possible to invisible GUI when get distance from the model?
for example in following example how can I invisible it when the camera get distance from the model?

You can set the alpha value to 0. For example: slider.alpha = 0;

As for the camera part you can just check the distance from the camera to the model on the update. One moment and I can code something up :slight_smile:

Here you go :slight_smile: in this example. I have it invisible the GUI after its 150 away but you can change it to however you like.

In the second version I changed it to be invisible while you are zooming by checking values between frames. If its not the same as the previous then its invisible.

1 Like

Thank you so much @msDestiny14 :pray: :pray: :pray: :pray:

1 Like