判断物体是否在任何一个摄像机中

 

void OnBecameInvisible (){
isRendering = false;

}

void OnBecameVisible(){
isRendering = true;
}

 

note:Scene窗口也被Unity3d算作一个camera。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
  • 2021-05-16
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-03-04
  • 2022-12-23
  • 2022-02-05
  • 2022-12-23
相关资源
相似解决方案