Set Visible: Difference between revisions
-u ndefined- (talk | contribs) m (Fix port type) |
-u ndefined- (talk | contribs) m (Prepend File: to an image link) |
||
Line 13: | Line 13: | ||
== Example == | == Example == | ||
[[Set_Visible_hide_example.png]] | [[File:Set_Visible_hide_example.png]] | ||
The brick will disappear from the level on Play. | The brick will disappear from the level on Play. |
Revision as of 13:06, 20 May 2024
Set Visible
Type | Script block |
Collider | None |
Folder | Objects |
Ports | |
---|---|
Inputs | Before Object Visible |
Outputs | After |
Shows or hides an object.
Example
File:Set Visible hide example.png
The brick will disappear from the level on Play.
Notes
- Objects set to invisible will also have no physics or collision. Using a Late Update block can prevent this.
- Invisible objects are not affected by physics, however their velocity is stored and will be applied when the object is set visible again.
- When the object is set to invisible, all constraints associated with the object will get deleted.