c# - Unity, how to get Camera angle Width -


i'm making game must set target number on enemy on screen.
fail find function isinsidecameraview(gameobject)

now i'm trying scan area camera looks. this, need camera angle width, angle hight. as described in emage (my reputation not enough show image directly)

my question similer question, how angles value of perspective camera in three.js? unity.

if know
how calculate camera width&height (following screen size when unity starts)or
there funtions isinsidecameraview(camera, gameobject)
answers welcomed.

[untested. javascript] can use renderer.isvisible determine if object within camera frustum.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -