Interface IProvidesSpatialHash
Provide access to the spatial hash
Inherited Members
Namespace: Unity.Labs.EditorXR.Interfaces
Syntax
public interface IProvidesSpatialHash : IFunctionalityProvider
Methods
AddToSpatialHash(GameObject)
Add all renderers of a GameObject (and its children) to the spatial hash for queries, direct selection, etc.
Declaration
void AddToSpatialHash(GameObject gameObjectToAdd)
Parameters
Type | Name | Description |
---|---|---|
GameObject | gameObjectToAdd | The GameObject to add |
RemoveFromSpatialHash(GameObject)
Remove all renderers of a GameObject (and its children) from the spatial hash
Declaration
void RemoveFromSpatialHash(GameObject gameObjectToRemove)
Parameters
Type | Name | Description |
---|---|---|
GameObject | gameObjectToRemove | The GameObject to remove |