Interface IProvidesCheckSphere
Provides the ability to check if scene objects are contained within a sphere
Namespace: Unity.Labs.EditorXR.Interfaces
Syntax
public interface IProvidesCheckSphere : IFunctionalityProvider
Methods
CheckSphere(Vector3, Single, List<GameObject>, List<GameObject>)
Do a sphere check against all Renderers
Declaration
bool CheckSphere(Vector3 center, float radius, List<GameObject> objects, List<GameObject> ignoreList = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | center | The center of the sphere |
| Single | radius | The radius of the sphere |
| List<GameObject> | objects | The list to which intersected Renderers will be added |
| List<GameObject> | ignoreList | (optional) A list of Renderers to ignore |
Returns
| Type | Description |
|---|---|
| Boolean | True if the sphere intersected any objects |