Set Visible: Difference between revisions
Nikitaivanov (talk | contribs) (Created page with "Shows or hides an object. File:Set_Visible.png = Example = File:False_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](https://www.fancade.com/wiki/blocks/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...") |
-u ndefined- (talk | contribs) m (Use infobox, and fix links) |
||
Line 1: | Line 1: | ||
{{Block | |||
|image=Set_Visible.png | |||
|type=s | |||
|folder=Objects | |||
|input1={{Port|e|Before}} | |||
|input2={{Port|o|Object}} | |||
|input3={{Port|v|Visible}} | |||
|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. | The brick will disappear from the level on Play. | ||
= Notes = | == Notes == | ||
* Objects set to invisible will also have no physics or collision. Using a [Late Update] | |||
* 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 constraints associated with the object will get deleted. | ||
[[Category:Blocks]] | [[Category:Blocks]] |
Revision as of 12:56, 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
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.