Class KaijuAgentsInView
Extension methods to get if a target is within the field-of-view. This does not consider vertical field-of-view, meaning it checks relative to the global Y axis. All three-dimensional vectors will be flattened via methods in KaijuAgentsFlatten.
Inheritance
Namespace: KaijuSolutions.Agents.Extensions
Syntax
public static class KaijuAgentsInView
Methods
InView(Component, Component, Component, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Component position, Component forward, Component target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to check field-of-view from. |
| Component | forward | The forward direction to start the field-of-view check from. |
| Component | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Component, Component, GameObject, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Component position, Component forward, GameObject target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to check field-of-view from. |
| Component | forward | The forward direction to start the field-of-view check from. |
| GameObject | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Component, Component, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Component position, Component target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to check field-of-view from relative to its forward. |
| Component | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Component, Component, Transform, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Component position, Component forward, Transform target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to check field-of-view from. |
| Component | forward | The forward direction to start the field-of-view check from. |
| Transform | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Component, Component, Vector2, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Component position, Component forward, Vector2 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to check field-of-view from. |
| Component | forward | The forward direction to start the field-of-view check from. |
| Vector2 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Component, Component, Vector3, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Component position, Component forward, Vector3 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to check field-of-view from. |
| Component | forward | The forward direction to start the field-of-view check from. |
| Vector3 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Component, GameObject, Component, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Component position, GameObject forward, Component target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to check field-of-view from. |
| GameObject | forward | The forward direction to start the field-of-view check from. |
| Component | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Component, GameObject, GameObject, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Component position, GameObject forward, GameObject target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to check field-of-view from. |
| GameObject | forward | The forward direction to start the field-of-view check from. |
| GameObject | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Component, GameObject, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Component position, GameObject target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to check field-of-view from relative to its forward. |
| GameObject | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Component, GameObject, Transform, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Component position, GameObject forward, Transform target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to check field-of-view from. |
| GameObject | forward | The forward direction to start the field-of-view check from. |
| Transform | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Component, GameObject, Vector2, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Component position, GameObject forward, Vector2 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to check field-of-view from. |
| GameObject | forward | The forward direction to start the field-of-view check from. |
| Vector2 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Component, GameObject, Vector3, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Component position, GameObject forward, Vector3 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to check field-of-view from. |
| GameObject | forward | The forward direction to start the field-of-view check from. |
| Vector3 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Component, Transform, Component, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Component position, Transform forward, Component target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to check field-of-view from. |
| Transform | forward | The forward direction to start the field-of-view check from. |
| Component | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Component, Transform, GameObject, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Component position, Transform forward, GameObject target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to check field-of-view from. |
| Transform | forward | The forward direction to start the field-of-view check from. |
| GameObject | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Component, Transform, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Component position, Transform target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to check field-of-view from relative to its forward. |
| Transform | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Component, Transform, Transform, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Component position, Transform forward, Transform target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to check field-of-view from. |
| Transform | forward | The forward direction to start the field-of-view check from. |
| Transform | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Component, Transform, Vector2, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Component position, Transform forward, Vector2 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to check field-of-view from. |
| Transform | forward | The forward direction to start the field-of-view check from. |
| Vector2 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Component, Transform, Vector3, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Component position, Transform forward, Vector3 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to check field-of-view from. |
| Transform | forward | The forward direction to start the field-of-view check from. |
| Vector3 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Component, Vector2, Component, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Component position, Vector2 forward, Component target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to check field-of-view from. |
| Vector2 | forward | The forward direction to start the field-of-view check from. |
| Component | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Component, Vector2, GameObject, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Component position, Vector2 forward, GameObject target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to check field-of-view from. |
| Vector2 | forward | The forward direction to start the field-of-view check from. |
| GameObject | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Component, Vector2, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Component position, Vector2 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to check field-of-view from relative to its forward. |
| Vector2 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Component, Vector2, Transform, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Component position, Vector2 forward, Transform target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to check field-of-view from. |
| Vector2 | forward | The forward direction to start the field-of-view check from. |
| Transform | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Component, Vector2, Vector2, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Component position, Vector2 forward, Vector2 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to check field-of-view from. |
| Vector2 | forward | The forward direction to start the field-of-view check from. |
| Vector2 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Component, Vector2, Vector3, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Component position, Vector2 forward, Vector3 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to check field-of-view from. |
| Vector2 | forward | The forward direction to start the field-of-view check from. |
| Vector3 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Component, Vector3, Component, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Component position, Vector3 forward, Component target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to check field-of-view from. |
| Vector3 | forward | The forward direction to start the field-of-view check from. |
| Component | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Component, Vector3, GameObject, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Component position, Vector3 forward, GameObject target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to check field-of-view from. |
| Vector3 | forward | The forward direction to start the field-of-view check from. |
| GameObject | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Component, Vector3, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Component position, Vector3 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to check field-of-view from relative to its forward. |
| Vector3 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Component, Vector3, Transform, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Component position, Vector3 forward, Transform target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to check field-of-view from. |
| Vector3 | forward | The forward direction to start the field-of-view check from. |
| Transform | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Component, Vector3, Vector2, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Component position, Vector3 forward, Vector2 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to check field-of-view from. |
| Vector3 | forward | The forward direction to start the field-of-view check from. |
| Vector2 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Component, Vector3, Vector3, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Component position, Vector3 forward, Vector3 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to check field-of-view from. |
| Vector3 | forward | The forward direction to start the field-of-view check from. |
| Vector3 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(GameObject, Component, Component, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this GameObject position, Component forward, Component target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to check field-of-view from. |
| Component | forward | The forward direction to start the field-of-view check from. |
| Component | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(GameObject, Component, GameObject, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this GameObject position, Component forward, GameObject target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to check field-of-view from. |
| Component | forward | The forward direction to start the field-of-view check from. |
| GameObject | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(GameObject, Component, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this GameObject position, Component target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to check field-of-view from relative to its forward. |
| Component | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(GameObject, Component, Transform, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this GameObject position, Component forward, Transform target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to check field-of-view from. |
| Component | forward | The forward direction to start the field-of-view check from. |
| Transform | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(GameObject, Component, Vector2, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this GameObject position, Component forward, Vector2 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to check field-of-view from. |
| Component | forward | The forward direction to start the field-of-view check from. |
| Vector2 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(GameObject, Component, Vector3, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this GameObject position, Component forward, Vector3 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to check field-of-view from. |
| Component | forward | The forward direction to start the field-of-view check from. |
| Vector3 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(GameObject, GameObject, Component, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this GameObject position, GameObject forward, Component target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to check field-of-view from. |
| GameObject | forward | The forward direction to start the field-of-view check from. |
| Component | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(GameObject, GameObject, GameObject, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this GameObject position, GameObject forward, GameObject target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to check field-of-view from. |
| GameObject | forward | The forward direction to start the field-of-view check from. |
| GameObject | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(GameObject, GameObject, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this GameObject position, GameObject target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to check field-of-view from relative to its forward. |
| GameObject | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(GameObject, GameObject, Transform, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this GameObject position, GameObject forward, Transform target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to check field-of-view from. |
| GameObject | forward | The forward direction to start the field-of-view check from. |
| Transform | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(GameObject, GameObject, Vector2, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this GameObject position, GameObject forward, Vector2 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to check field-of-view from. |
| GameObject | forward | The forward direction to start the field-of-view check from. |
| Vector2 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(GameObject, GameObject, Vector3, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this GameObject position, GameObject forward, Vector3 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to check field-of-view from. |
| GameObject | forward | The forward direction to start the field-of-view check from. |
| Vector3 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(GameObject, Transform, Component, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this GameObject position, Transform forward, Component target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to check field-of-view from. |
| Transform | forward | The forward direction to start the field-of-view check from. |
| Component | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(GameObject, Transform, GameObject, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this GameObject position, Transform forward, GameObject target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to check field-of-view from. |
| Transform | forward | The forward direction to start the field-of-view check from. |
| GameObject | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(GameObject, Transform, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this GameObject position, Transform target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to check field-of-view from relative to its forward. |
| Transform | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(GameObject, Transform, Transform, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this GameObject position, Transform forward, Transform target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to check field-of-view from. |
| Transform | forward | The forward direction to start the field-of-view check from. |
| Transform | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(GameObject, Transform, Vector2, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this GameObject position, Transform forward, Vector2 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to check field-of-view from. |
| Transform | forward | The forward direction to start the field-of-view check from. |
| Vector2 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(GameObject, Transform, Vector3, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this GameObject position, Transform forward, Vector3 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to check field-of-view from. |
| Transform | forward | The forward direction to start the field-of-view check from. |
| Vector3 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(GameObject, Vector2, Component, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this GameObject position, Vector2 forward, Component target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to check field-of-view from. |
| Vector2 | forward | The forward direction to start the field-of-view check from. |
| Component | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(GameObject, Vector2, GameObject, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this GameObject position, Vector2 forward, GameObject target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to check field-of-view from. |
| Vector2 | forward | The forward direction to start the field-of-view check from. |
| GameObject | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(GameObject, Vector2, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this GameObject position, Vector2 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to check field-of-view from relative to its forward. |
| Vector2 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(GameObject, Vector2, Transform, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this GameObject position, Vector2 forward, Transform target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to check field-of-view from. |
| Vector2 | forward | The forward direction to start the field-of-view check from. |
| Transform | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(GameObject, Vector2, Vector2, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this GameObject position, Vector2 forward, Vector2 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to check field-of-view from. |
| Vector2 | forward | The forward direction to start the field-of-view check from. |
| Vector2 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(GameObject, Vector2, Vector3, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this GameObject position, Vector2 forward, Vector3 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to check field-of-view from. |
| Vector2 | forward | The forward direction to start the field-of-view check from. |
| Vector3 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(GameObject, Vector3, Component, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this GameObject position, Vector3 forward, Component target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to check field-of-view from. |
| Vector3 | forward | The forward direction to start the field-of-view check from. |
| Component | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(GameObject, Vector3, GameObject, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this GameObject position, Vector3 forward, GameObject target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to check field-of-view from. |
| Vector3 | forward | The forward direction to start the field-of-view check from. |
| GameObject | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(GameObject, Vector3, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this GameObject position, Vector3 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to check field-of-view from relative to its forward. |
| Vector3 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(GameObject, Vector3, Transform, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this GameObject position, Vector3 forward, Transform target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to check field-of-view from. |
| Vector3 | forward | The forward direction to start the field-of-view check from. |
| Transform | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(GameObject, Vector3, Vector2, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this GameObject position, Vector3 forward, Vector2 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to check field-of-view from. |
| Vector3 | forward | The forward direction to start the field-of-view check from. |
| Vector2 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(GameObject, Vector3, Vector3, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this GameObject position, Vector3 forward, Vector3 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to check field-of-view from. |
| Vector3 | forward | The forward direction to start the field-of-view check from. |
| Vector3 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Transform, Component, Component, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Transform position, Component forward, Component target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to check field-of-view from. |
| Component | forward | The forward direction to start the field-of-view check from. |
| Component | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Transform, Component, GameObject, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Transform position, Component forward, GameObject target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to check field-of-view from. |
| Component | forward | The forward direction to start the field-of-view check from. |
| GameObject | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Transform, Component, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Transform position, Component target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to check field-of-view from relative to its forward. |
| Component | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Transform, Component, Transform, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Transform position, Component forward, Transform target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to check field-of-view from. |
| Component | forward | The forward direction to start the field-of-view check from. |
| Transform | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Transform, Component, Vector2, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Transform position, Component forward, Vector2 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to check field-of-view from. |
| Component | forward | The forward direction to start the field-of-view check from. |
| Vector2 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Transform, Component, Vector3, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Transform position, Component forward, Vector3 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to check field-of-view from. |
| Component | forward | The forward direction to start the field-of-view check from. |
| Vector3 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Transform, GameObject, Component, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Transform position, GameObject forward, Component target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to check field-of-view from. |
| GameObject | forward | The forward direction to start the field-of-view check from. |
| Component | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Transform, GameObject, GameObject, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Transform position, GameObject forward, GameObject target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to check field-of-view from. |
| GameObject | forward | The forward direction to start the field-of-view check from. |
| GameObject | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Transform, GameObject, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Transform position, GameObject target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to check field-of-view from relative to its forward. |
| GameObject | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Transform, GameObject, Transform, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Transform position, GameObject forward, Transform target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to check field-of-view from. |
| GameObject | forward | The forward direction to start the field-of-view check from. |
| Transform | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Transform, GameObject, Vector2, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Transform position, GameObject forward, Vector2 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to check field-of-view from. |
| GameObject | forward | The forward direction to start the field-of-view check from. |
| Vector2 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Transform, GameObject, Vector3, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Transform position, GameObject forward, Vector3 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to check field-of-view from. |
| GameObject | forward | The forward direction to start the field-of-view check from. |
| Vector3 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Transform, Transform, Component, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Transform position, Transform forward, Component target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to check field-of-view from. |
| Transform | forward | The forward direction to start the field-of-view check from. |
| Component | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Transform, Transform, GameObject, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Transform position, Transform forward, GameObject target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to check field-of-view from. |
| Transform | forward | The forward direction to start the field-of-view check from. |
| GameObject | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Transform, Transform, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Transform position, Transform target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to check field-of-view from relative to its forward. |
| Transform | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Transform, Transform, Transform, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Transform position, Transform forward, Transform target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to check field-of-view from. |
| Transform | forward | The forward direction to start the field-of-view check from. |
| Transform | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Transform, Transform, Vector2, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Transform position, Transform forward, Vector2 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to check field-of-view from. |
| Transform | forward | The forward direction to start the field-of-view check from. |
| Vector2 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Transform, Transform, Vector3, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Transform position, Transform forward, Vector3 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to check field-of-view from. |
| Transform | forward | The forward direction to start the field-of-view check from. |
| Vector3 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Transform, Vector2, Component, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Transform position, Vector2 forward, Component target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to check field-of-view from. |
| Vector2 | forward | The forward direction to start the field-of-view check from. |
| Component | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Transform, Vector2, GameObject, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Transform position, Vector2 forward, GameObject target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to check field-of-view from. |
| Vector2 | forward | The forward direction to start the field-of-view check from. |
| GameObject | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Transform, Vector2, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Transform position, Vector2 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to check field-of-view from relative to its forward. |
| Vector2 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Transform, Vector2, Transform, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Transform position, Vector2 forward, Transform target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to check field-of-view from. |
| Vector2 | forward | The forward direction to start the field-of-view check from. |
| Transform | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Transform, Vector2, Vector2, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Transform position, Vector2 forward, Vector2 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to check field-of-view from. |
| Vector2 | forward | The forward direction to start the field-of-view check from. |
| Vector2 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Transform, Vector2, Vector3, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Transform position, Vector2 forward, Vector3 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to check field-of-view from. |
| Vector2 | forward | The forward direction to start the field-of-view check from. |
| Vector3 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Transform, Vector3, Component, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Transform position, Vector3 forward, Component target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to check field-of-view from. |
| Vector3 | forward | The forward direction to start the field-of-view check from. |
| Component | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Transform, Vector3, GameObject, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Transform position, Vector3 forward, GameObject target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to check field-of-view from. |
| Vector3 | forward | The forward direction to start the field-of-view check from. |
| GameObject | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Transform, Vector3, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Transform position, Vector3 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to check field-of-view from relative to its forward. |
| Vector3 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Transform, Vector3, Transform, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Transform position, Vector3 forward, Transform target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to check field-of-view from. |
| Vector3 | forward | The forward direction to start the field-of-view check from. |
| Transform | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Transform, Vector3, Vector2, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Transform position, Vector3 forward, Vector2 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to check field-of-view from. |
| Vector3 | forward | The forward direction to start the field-of-view check from. |
| Vector2 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Transform, Vector3, Vector3, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Transform position, Vector3 forward, Vector3 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to check field-of-view from. |
| Vector3 | forward | The forward direction to start the field-of-view check from. |
| Vector3 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector2, Component, Component, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector2 position, Component forward, Component target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to check field-of-view from. |
| Component | forward | The forward direction to start the field-of-view check from. |
| Component | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector2, Component, GameObject, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector2 position, Component forward, GameObject target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to check field-of-view from. |
| Component | forward | The forward direction to start the field-of-view check from. |
| GameObject | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector2, Component, Transform, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector2 position, Component forward, Transform target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to check field-of-view from. |
| Component | forward | The forward direction to start the field-of-view check from. |
| Transform | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector2, Component, Vector2, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector2 position, Component forward, Vector2 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to check field-of-view from. |
| Component | forward | The forward direction to start the field-of-view check from. |
| Vector2 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector2, Component, Vector3, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector2 position, Component forward, Vector3 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to check field-of-view from. |
| Component | forward | The forward direction to start the field-of-view check from. |
| Vector3 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector2, GameObject, Component, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector2 position, GameObject forward, Component target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to check field-of-view from. |
| GameObject | forward | The forward direction to start the field-of-view check from. |
| Component | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector2, GameObject, GameObject, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector2 position, GameObject forward, GameObject target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to check field-of-view from. |
| GameObject | forward | The forward direction to start the field-of-view check from. |
| GameObject | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector2, GameObject, Transform, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector2 position, GameObject forward, Transform target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to check field-of-view from. |
| GameObject | forward | The forward direction to start the field-of-view check from. |
| Transform | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector2, GameObject, Vector2, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector2 position, GameObject forward, Vector2 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to check field-of-view from. |
| GameObject | forward | The forward direction to start the field-of-view check from. |
| Vector2 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector2, GameObject, Vector3, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector2 position, GameObject forward, Vector3 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to check field-of-view from. |
| GameObject | forward | The forward direction to start the field-of-view check from. |
| Vector3 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector2, Transform, Component, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector2 position, Transform forward, Component target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to check field-of-view from. |
| Transform | forward | The forward direction to start the field-of-view check from. |
| Component | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector2, Transform, GameObject, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector2 position, Transform forward, GameObject target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to check field-of-view from. |
| Transform | forward | The forward direction to start the field-of-view check from. |
| GameObject | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector2, Transform, Transform, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector2 position, Transform forward, Transform target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to check field-of-view from. |
| Transform | forward | The forward direction to start the field-of-view check from. |
| Transform | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector2, Transform, Vector2, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector2 position, Transform forward, Vector2 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to check field-of-view from. |
| Transform | forward | The forward direction to start the field-of-view check from. |
| Vector2 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector2, Transform, Vector3, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector2 position, Transform forward, Vector3 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to check field-of-view from. |
| Transform | forward | The forward direction to start the field-of-view check from. |
| Vector3 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector2, Vector2, Component, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector2 position, Vector2 forward, Component target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to check field-of-view from. |
| Vector2 | forward | The forward direction to start the field-of-view check from. |
| Component | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector2, Vector2, GameObject, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector2 position, Vector2 forward, GameObject target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to check field-of-view from. |
| Vector2 | forward | The forward direction to start the field-of-view check from. |
| GameObject | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector2, Vector2, Transform, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector2 position, Vector2 forward, Transform target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to check field-of-view from. |
| Vector2 | forward | The forward direction to start the field-of-view check from. |
| Transform | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector2, Vector2, Vector2, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector2 position, Vector2 forward, Vector2 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to check field-of-view from. |
| Vector2 | forward | The forward direction to start the field-of-view check from. |
| Vector2 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector2, Vector2, Vector3, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector2 position, Vector2 forward, Vector3 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to check field-of-view from. |
| Vector2 | forward | The forward direction to start the field-of-view check from. |
| Vector3 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector2, Vector3, Component, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector2 position, Vector3 forward, Component target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to check field-of-view from. |
| Vector3 | forward | The forward direction to start the field-of-view check from. |
| Component | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector2, Vector3, GameObject, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector2 position, Vector3 forward, GameObject target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to check field-of-view from. |
| Vector3 | forward | The forward direction to start the field-of-view check from. |
| GameObject | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector2, Vector3, Transform, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector2 position, Vector3 forward, Transform target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to check field-of-view from. |
| Vector3 | forward | The forward direction to start the field-of-view check from. |
| Transform | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector2, Vector3, Vector2, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector2 position, Vector3 forward, Vector2 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to check field-of-view from. |
| Vector3 | forward | The forward direction to start the field-of-view check from. |
| Vector2 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector2, Vector3, Vector3, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector2 position, Vector3 forward, Vector3 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to check field-of-view from. |
| Vector3 | forward | The forward direction to start the field-of-view check from. |
| Vector3 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector3, Component, Component, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector3 position, Component forward, Component target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to check field-of-view from. |
| Component | forward | The forward direction to start the field-of-view check from. |
| Component | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector3, Component, GameObject, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector3 position, Component forward, GameObject target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to check field-of-view from. |
| Component | forward | The forward direction to start the field-of-view check from. |
| GameObject | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector3, Component, Transform, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector3 position, Component forward, Transform target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to check field-of-view from. |
| Component | forward | The forward direction to start the field-of-view check from. |
| Transform | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector3, Component, Vector2, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector3 position, Component forward, Vector2 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to check field-of-view from. |
| Component | forward | The forward direction to start the field-of-view check from. |
| Vector2 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector3, Component, Vector3, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector3 position, Component forward, Vector3 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to check field-of-view from. |
| Component | forward | The forward direction to start the field-of-view check from. |
| Vector3 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector3, GameObject, Component, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector3 position, GameObject forward, Component target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to check field-of-view from. |
| GameObject | forward | The forward direction to start the field-of-view check from. |
| Component | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector3, GameObject, GameObject, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector3 position, GameObject forward, GameObject target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to check field-of-view from. |
| GameObject | forward | The forward direction to start the field-of-view check from. |
| GameObject | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector3, GameObject, Transform, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector3 position, GameObject forward, Transform target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to check field-of-view from. |
| GameObject | forward | The forward direction to start the field-of-view check from. |
| Transform | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector3, GameObject, Vector2, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector3 position, GameObject forward, Vector2 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to check field-of-view from. |
| GameObject | forward | The forward direction to start the field-of-view check from. |
| Vector2 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector3, GameObject, Vector3, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector3 position, GameObject forward, Vector3 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to check field-of-view from. |
| GameObject | forward | The forward direction to start the field-of-view check from. |
| Vector3 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector3, Transform, Component, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector3 position, Transform forward, Component target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to check field-of-view from. |
| Transform | forward | The forward direction to start the field-of-view check from. |
| Component | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector3, Transform, GameObject, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector3 position, Transform forward, GameObject target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to check field-of-view from. |
| Transform | forward | The forward direction to start the field-of-view check from. |
| GameObject | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector3, Transform, Transform, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector3 position, Transform forward, Transform target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to check field-of-view from. |
| Transform | forward | The forward direction to start the field-of-view check from. |
| Transform | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector3, Transform, Vector2, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector3 position, Transform forward, Vector2 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to check field-of-view from. |
| Transform | forward | The forward direction to start the field-of-view check from. |
| Vector2 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector3, Transform, Vector3, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector3 position, Transform forward, Vector3 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to check field-of-view from. |
| Transform | forward | The forward direction to start the field-of-view check from. |
| Vector3 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector3, Vector2, Component, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector3 position, Vector2 forward, Component target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to check field-of-view from. |
| Vector2 | forward | The forward direction to start the field-of-view check from. |
| Component | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector3, Vector2, GameObject, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector3 position, Vector2 forward, GameObject target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to check field-of-view from. |
| Vector2 | forward | The forward direction to start the field-of-view check from. |
| GameObject | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector3, Vector2, Transform, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector3 position, Vector2 forward, Transform target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to check field-of-view from. |
| Vector2 | forward | The forward direction to start the field-of-view check from. |
| Transform | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector3, Vector2, Vector2, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector3 position, Vector2 forward, Vector2 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to check field-of-view from. |
| Vector2 | forward | The forward direction to start the field-of-view check from. |
| Vector2 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector3, Vector2, Vector3, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector3 position, Vector2 forward, Vector3 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to check field-of-view from. |
| Vector2 | forward | The forward direction to start the field-of-view check from. |
| Vector3 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector3, Vector3, Component, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector3 position, Vector3 forward, Component target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to check field-of-view from. |
| Vector3 | forward | The forward direction to start the field-of-view check from. |
| Component | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector3, Vector3, GameObject, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector3 position, Vector3 forward, GameObject target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to check field-of-view from. |
| Vector3 | forward | The forward direction to start the field-of-view check from. |
| GameObject | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector3, Vector3, Transform, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector3 position, Vector3 forward, Transform target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to check field-of-view from. |
| Vector3 | forward | The forward direction to start the field-of-view check from. |
| Transform | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector3, Vector3, Vector2, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector3 position, Vector3 forward, Vector2 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to check field-of-view from. |
| Vector3 | forward | The forward direction to start the field-of-view check from. |
| Vector2 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |
InView(Vector3, Vector3, Vector3, Single)
If a target is within the field-of-view. This does not consider vertical field-of-view.
Declaration
public static bool InView(this Vector3 position, Vector3 forward, Vector3 target, float fov)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to check field-of-view from. |
| Vector3 | forward | The forward direction to start the field-of-view check from. |
| Vector3 | target | The target position to check if it is within the field-of-view. |
| System.Single | fov | The field-of-view in degrees. |
Returns
| Type | Description |
|---|---|
| System.Boolean | If a target is within the field-of-view. |