Set Visible: Difference between revisions

m
Remove useless example but add interesting note
m (Use infobox, and fix links)
m (Remove useless example but add interesting note)
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
|input1={{Port|e|Before}}
|input1={{Port|e|Before}}
|input2={{Port|o|Object}}
|input2={{Port|o|Object}}
|input3={{Port|v|Visible}}
|input3={{Port|t|Visible}}
|output1={{Port|e|After}}
|output1={{Port|e|After}}
}}
}}


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 22: Line 16:
* 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 constraints 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]]