UnityGame/Assets/Scripts/HideObjects.cs
2024-10-27 10:53:47 +03:00

13 lines
222 B
C#

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