About
Contents
STL
Android
Eigen
enchant.js
Firefox OS
OpenGL
OpenGL ES 2.0
pukiwiki
UE4
Unity
Windows Phone
Xamarin
Materials Link
その他
PR
STL
Android
Eigen
enchant.js
Firefox OS
OpenGL
OpenGL ES 2.0
pukiwiki
UE4
Unity
Windows Phone
Xamarin
以前のリビジョンの文書です
bool CheckScreenOut( Vector3 _pos ) { Vector3 view_pos = Camera.main.WorldToViewportPoint( _pos ); if( view_pos.x < -0.0f || view_pos.x > 1.0f || view_pos.y < -0.0f || view_pos.y > 1.0f ) { // 範囲外 return true; } // 範囲内 return false; }
// 写っている void OnBecameVisible() { Debug.Log("OnBecameVisible"); } // 写っていない void OnBecameInvisible() { Debug.Log("OnBecameInvisible"); }
こちらはレンダラ-が有効になっている場合に使える。