This is the testing Godot forums! All forum posts unique to this forum will be deleted! Please use the main forums here for any posts you want to keep. All forum rules still apply.

How to change visibility? Godot3D

MeldoshMeldosh Posts: 1Member

Hello! How to change the visibility of the object (3D Sprite, MeshInstance) when I enter his tree or just go through him?
Please, can anyone say?


  • TwistedTwiglegTwistedTwigleg Posts: 2,561Admin

    Welcome to the forums @Meldosh!

    You can change the visibility of any node that extends a Spatial by changing the visible property (documentation). Using node_here.visible = false should make the node invisible, which then you can add to make it disappear upon entering the tree or after a collision.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.