Interface IProvidesSpatialHash | Unity Reflect | 1.1.0-preview.6
docs.unity.cn
    Show / Hide Table of Contents

    Interface IProvidesSpatialHash

    Provide access to the spatial hash

    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

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX