Class UsesSpatialHashMethods
Namespace: Unity.Labs.EditorXR.Interfaces
Syntax
public static class UsesSpatialHashMethods
Methods
AddToSpatialHash(IUsesSpatialHash, GameObject)
Add all renderers of a GameObject (and its children) to the spatial hash for queries, direct selection, etc.
Declaration
public static void AddToSpatialHash(this IUsesSpatialHash user, GameObject go)
Parameters
Type | Name | Description |
---|---|---|
IUsesSpatialHash | user | The functionality user |
GameObject | go | The GameObject to add |
RemoveFromSpatialHash(IUsesSpatialHash, GameObject)
Remove all renderers of a GameObject (and its children) from the spatial hash
Declaration
public static void RemoveFromSpatialHash(this IUsesSpatialHash user, GameObject go)
Parameters
Type | Name | Description |
---|---|---|
IUsesSpatialHash | user | The functionality user |
GameObject | go | The GameObject to remove |