Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 548 Bytes

SetVisible.obj.bool.md

File metadata and controls

35 lines (22 loc) · 548 Bytes

SetVisible(obj, bool)

Sets if object is visible and has collision/physics.

void setVisible(this obj object, bool visible)

Parameters

object

Type: obj

visible

Type: bool

Remarks

  • When object is set to invisible, all constraints associated with it will be deleted.

Examples

// Here's how an object can be invisible, while also having physics:
object obj
obj.setVisible(true)
on LateUpdate
{
    obj.setVisible(false)
}