Set Visible: Difference between revisions
-u ndefined- (talk | contribs) m (Use infobox, and fix links)  | 
				-u ndefined- (talk | contribs)  m (Fix port type)  | 
				||
| Line 5: | Line 5: | ||
|input1={{Port|e|Before}}  | |input1={{Port|e|Before}}  | ||
|input2={{Port|o|Object}}  | |input2={{Port|o|Object}}  | ||
|input3={{Port|  | |input3={{Port|t|Visible}}  | ||
|output1={{Port|e|After}}  | |output1={{Port|e|After}}  | ||
}}  | }}  | ||
Revision as of 12:57, 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.