Method IsObjectInView
IsObjectInView(Plane[], GameObject)
Returns true if the testObject is inside the frustum. The testObject requires a collider component.
Declaration
public static bool IsObjectInView(Plane[] frustum, GameObject testObject)
Parameters
Type |
Name |
Description |
Plane[] |
frustum |
|
GameObject |
testObject |
|
Returns
Type |
Description |
System.Boolean |
|
IsObjectInView(Plane[], Collider)
Returns true if the test object is inside the frustum.
Declaration
public static bool IsObjectInView(Plane[] frustum, Collider testObject)
Parameters
Type |
Name |
Description |
Plane[] |
frustum |
|
Collider |
testObject |
|
Returns
Type |
Description |
System.Boolean |
|
IsObjectInView(Plane[], Bounds)
Returns true if the bounds intersects inside the frustum.
Declaration
public static bool IsObjectInView(Plane[] frustum, Bounds bounds)
Parameters
Type |
Name |
Description |
Plane[] |
frustum |
|
Bounds |
bounds |
|
Returns
Type |
Description |
System.Boolean |
|