Component of MeshRenderer.
Makes the rendered 3D object visible if enabled.
--clicking this object will Enable/Disable it's Mesh Renderer component thisGameObject = Space.Host.ExecutingObject component = thisGameObject.MeshRenderer OnClick = function() component.Enabled = not component.Enabled end thisGameObject.AddClickable() thisGameObject.Clickable.OnClick(OnClick)
|