using UnityEngine; public class HideObject : MonoBehaviour { void Start() { Renderer rend = GetComponent(); if (rend != null) { rend.enabled = false; } } }