📅  最后修改于: 2022-03-11 14:48:59.846000             🧑  作者: Mango
using UnityEngine;
public class TestRendered : MonoBehaviour
{
void Update()
{
if (renderer.IsVisibleFrom(Camera.main)) Debug.Log("Visible");
else Debug.Log("Not visible");
}
}