C# Класс HoloToolkit.Unity.SpatialMappingSource

Наследование: UnityEngine.MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
componentsRequiredForSurfaceMesh System.Type[]

Открытые методы

Метод Описание
GetMeshFilters ( ) : List

Gets all mesh filters that have a valid mesh.

GetMeshRenderers ( ) : List

Gets all mesh renderers that have been created.

Защищенные методы

Метод Описание
AddSurfaceObject ( Mesh mesh, string objectName, Transform parentObject, int meshID ) : GameObject

Creates a new surface game object.

Awake ( ) : void
Cleanup ( ) : void

Cleans up references to objects that we have created.

RemoveSurfaceObject ( GameObject surface, bool removeAndDestroy = true ) : void

Removes and optionally destroys the specified surfaceObject that we've created

UpdateSurfaceObject ( GameObject gameObject, int meshID ) : void

Updates an existing surface object.

Описание методов

AddSurfaceObject() защищенный Метод

Creates a new surface game object.
protected AddSurfaceObject ( Mesh mesh, string objectName, Transform parentObject, int meshID ) : GameObject
mesh UnityEngine.Mesh The mesh to attach. Can be null.
objectName string What to name this object.
parentObject UnityEngine.Transform What to parent this object to.
meshID int Optional user specified ID for the mesh.
Результат UnityEngine.GameObject

Awake() защищенный Метод

protected Awake ( ) : void
Результат void

Cleanup() защищенный Метод

Cleans up references to objects that we have created.
protected Cleanup ( ) : void
Результат void

GetMeshFilters() публичный Метод

Gets all mesh filters that have a valid mesh.
public GetMeshFilters ( ) : List
Результат List

GetMeshRenderers() публичный Метод

Gets all mesh renderers that have been created.
public GetMeshRenderers ( ) : List
Результат List

RemoveSurfaceObject() защищенный Метод

Removes and optionally destroys the specified surfaceObject that we've created
protected RemoveSurfaceObject ( GameObject surface, bool removeAndDestroy = true ) : void
surface UnityEngine.GameObject The surface game object
removeAndDestroy bool If true, the surface will be removed and destroyed. If false, it will only be removed.
Результат void

UpdateSurfaceObject() защищенный Метод

Updates an existing surface object.
protected UpdateSurfaceObject ( GameObject gameObject, int meshID ) : void
gameObject UnityEngine.GameObject Game object reference to the surfaceObject.
meshID int User specified ID for the mesh.
Результат void

Описание свойств

componentsRequiredForSurfaceMesh защищенное свойство

When a mesh is created we will need to create a game object with a minimum set of components to contain the mesh. These are the required component types.
protected Type[],System componentsRequiredForSurfaceMesh
Результат System.Type[]