Jump to content

Set Visible: Difference between revisions

m (Fix port type)
Tags: Mobile edit Mobile web edit Advanced mobile edit
 
(3 intermediate revisions by 2 users not shown)
Line 9: Line 9:
}}
}}


Shows or hides an object.
Shows or hides an [[object]].
 
== Example ==
 
[[Set_Visible_hide_example.png]]
 
The brick will disappear from the level on Play.


== Notes ==
== Notes ==
Line 21: Line 15:
* Objects set to invisible will also have no physics or collision. Using a [[Late Update]] block can prevent this.
* 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.
* 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.
* When the object is set to invisible, all [[constraint]]s associated with the object will get deleted.
* When an object's visibility is changed, its [[collider]] will update to the current [[Set Position|position]] accordingly.


[[Category:Blocks]]
[[Category:Blocks]]