UnityGame/Assets/Scripts/HideObjects.cs

13 lines
222 B
C#
Raw Normal View History

2024-10-27 10:53:47 +03:00
using UnityEngine;
public class HideObject : MonoBehaviour
{
void Start()
{
Renderer rend = GetComponent<Renderer>();
if (rend != null)
{
rend.enabled = false;
}
}
}