Method GetObjectsInView
GetObjectsInView(Camera)
Returns an array of all game objects in the scene that have colliders which are in the camera's view.
Declaration
public static GameObject[] GetObjectsInView(Camera camera)
Parameters
Type |
Name |
Description |
Camera |
camera |
|
Returns
Type |
Description |
GameObject[] |
|
GetObjectsInView(Plane[])
Returns an array of all game objects in the scene that have colliders in the given frustum.
Declaration
public static GameObject[] GetObjectsInView(Plane[] frustum)
Parameters
Type |
Name |
Description |
Plane[] |
frustum |
|
Returns
Type |
Description |
GameObject[] |
|
GetObjectsInView(Camera, IEnumerable<GameObject>)
Tests the given list of game objects and returns those that are in view.
Declaration
public static GameObject[] GetObjectsInView(Camera camera, IEnumerable<GameObject> gameObjects)
Parameters
Type |
Name |
Description |
Camera |
camera |
|
IEnumerable<GameObject> |
gameObjects |
|
Returns
Type |
Description |
GameObject[] |
|
GetObjectsInView(RideVector3, RideVector3, Plane[], IEnumerable<GameObject>)
Declaration
public static GameObject[] GetObjectsInView(RideVector3 viewerPos, RideVector3 viewerDirection, Plane[] frustum, IEnumerable<GameObject> gameObjects)
Parameters
Type |
Name |
Description |
RideVector3 |
viewerPos |
|
RideVector3 |
viewerDirection |
|
Plane[] |
frustum |
|
IEnumerable<GameObject> |
gameObjects |
|
Returns
Type |
Description |
GameObject[] |
|
GetObjectsInView(ISpatialObject, IEnumerable<ISpatialObject>)
Declaration
public static IEnumerable<ISpatialObject> GetObjectsInView(ISpatialObject viewer, IEnumerable<ISpatialObject> objects)
Parameters
Returns
GetObjectsInView(Single, Single, Single, Single, RideVector3, RideQuaternion, IEnumerable<ISpatialObject>)
Declaration
public static IEnumerable<ISpatialObject> GetObjectsInView(float fov, float aspect, float near, float far, RideVector3 viewerPos, RideQuaternion viewerRot, IEnumerable<ISpatialObject> objects)
Parameters
Returns