C# 클래스 SMBaseAbstract.RemovedSurfaceHolder, InteractivePaint

The struct that will be used when caching meshes marked for deletion before the NumUpdatesBeforeRemoval has been reached
파일 보기 프로젝트 열기: OpenHID/InteractivePaint

공개 프로퍼티들

프로퍼티 타입 설명
gameObject GameObject
id UnityEngine.VR.WSA.SurfaceId
updatesBeforeRemoval int
wasMeshColliderEnabled bool
wasMeshRendererEnabled bool

공개 메소드들

메소드 설명
DecrementUpdatesRemaining ( ) : void

Decrements the number of updates remaining by one

RemovedSurfaceHolder ( int updatesBeforeRemoval, GameObject gameObject, SurfaceId id, bool wasMeshColliderEnabled, bool wasMeshRendererEnabled ) : UnityEngine

Constructor for the struct taking all the parameters in

SetColliderEnabled ( bool colliderEnabled ) : void

Updates whether to enable the collider if the mesh is re-added

SetRendererEnabled ( bool rendererEnabled ) : void

Updates whether to enable the renderer if the mesh is re-added

메소드 상세

DecrementUpdatesRemaining() 공개 메소드

Decrements the number of updates remaining by one
public DecrementUpdatesRemaining ( ) : void
리턴 void

RemovedSurfaceHolder() 공개 메소드

Constructor for the struct taking all the parameters in
public RemovedSurfaceHolder ( int updatesBeforeRemoval, GameObject gameObject, SurfaceId id, bool wasMeshColliderEnabled, bool wasMeshRendererEnabled ) : UnityEngine
updatesBeforeRemoval int The number of updates which will pass before this object is removed.
gameObject GameObject The GameObject owner of all of the mesh components
id UnityEngine.VR.WSA.SurfaceId The SurfaceId identifying this surface
wasMeshColliderEnabled bool Whether or not a MeshCollider was present and enabled
wasMeshRendererEnabled bool Whether or not a MeshRenderer was present and enabled
리턴 UnityEngine

SetColliderEnabled() 공개 메소드

Updates whether to enable the collider if the mesh is re-added
public SetColliderEnabled ( bool colliderEnabled ) : void
colliderEnabled bool Whether or not to re-enable the collider if the mesh is re-added
리턴 void

SetRendererEnabled() 공개 메소드

Updates whether to enable the renderer if the mesh is re-added
public SetRendererEnabled ( bool rendererEnabled ) : void
rendererEnabled bool Whether or not to re-enable the renderer if the mesh is re-added
리턴 void

프로퍼티 상세

gameObject 공개적으로 프로퍼티

The GameObject that holds the MeshFilter as well as any other components associated with this mesh (colliders, renderers, etc.)
public GameObject gameObject
리턴 GameObject

id 공개적으로 프로퍼티

The identifier of this surface
public SurfaceId,UnityEngine.VR.WSA id
리턴 UnityEngine.VR.WSA.SurfaceId

updatesBeforeRemoval 공개적으로 프로퍼티

The number of remaining updates before the referenced mesh will be removed
public int updatesBeforeRemoval
리턴 int

wasMeshColliderEnabled 공개적으로 프로퍼티

Whether the MeshCollider was present and enabled when this object was marked for removal. If this object is re-added before it is Destroyed, the MeshCollider.enabled state will be restored assuming the MeshCollider still exists
public bool wasMeshColliderEnabled
리턴 bool

wasMeshRendererEnabled 공개적으로 프로퍼티

Whether the MeshRenderer was present and enabled when this object was marked for removal. If this object is re-added before it is Destroyed, the MehsRenderer.enabled state will be restored assuming the MeshRenderer still exists
public bool wasMeshRendererEnabled
리턴 bool