GeometryUtility.TestPlanesAABBstatic function TestPlanesAABB (planes : Plane[], bounds : Bounds) : booleanDescriptionReturns true if bounds are inside the plane array. Will return true if the bounding box is inside the planes or intersects any of the planes.
The TestPlanesAABB function uses the Plane array to test whether a bounding box is in the frustum or not. See Also: GeometryUtility.CalculateFrustumPlanes.
JavaScript
// Detects manually if anObject is being seen by the main camera using UnityEngine; import UnityEngine |
