C# 클래스 HoloToolkit.Unity.SpatialMappingSource

상속: UnityEngine.MonoBehaviour
파일 보기 프로젝트 열기: Microsoft/HoloToolkit-Unity 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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[]