C# Class HoloToolkit.Unity.SpatialMappingSource

Inheritance: UnityEngine.MonoBehaviour
Afficher le fichier Open project: Microsoft/HoloToolkit-Unity Class Usage Examples

Protected Properties

Свойство Type Description
componentsRequiredForSurfaceMesh System.Type[]

Méthodes publiques

Méthode Description
GetMeshFilters ( ) : List

Gets all mesh filters that have a valid mesh.

GetMeshRenderers ( ) : List

Gets all mesh renderers that have been created.

Méthodes protégées

Méthode Description
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.

Method Details

AddSurfaceObject() protected méthode

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.
Résultat UnityEngine.GameObject

Awake() protected méthode

protected Awake ( ) : void
Résultat void

Cleanup() protected méthode

Cleans up references to objects that we have created.
protected Cleanup ( ) : void
Résultat void

GetMeshFilters() public méthode

Gets all mesh filters that have a valid mesh.
public GetMeshFilters ( ) : List
Résultat List

GetMeshRenderers() public méthode

Gets all mesh renderers that have been created.
public GetMeshRenderers ( ) : List
Résultat List

RemoveSurfaceObject() protected méthode

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.
Résultat void

UpdateSurfaceObject() protected méthode

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.
Résultat void

Property Details

componentsRequiredForSurfaceMesh protected_oe property

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
Résultat System.Type[]