C# Class SMBaseAbstract.RemovedSurfaceHolder, InteractivePaint

The struct that will be used when caching meshes marked for deletion before the NumUpdatesBeforeRemoval has been reached
Mostrar archivo Open project: OpenHID/InteractivePaint

Public Properties

Property Type Description
gameObject GameObject
id UnityEngine.VR.WSA.SurfaceId
updatesBeforeRemoval int
wasMeshColliderEnabled bool
wasMeshRendererEnabled bool

Public Methods

Method Description
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

Method Details

DecrementUpdatesRemaining() public method

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

RemovedSurfaceHolder() public method

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
return UnityEngine

SetColliderEnabled() public method

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
return void

SetRendererEnabled() public method

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
return void

Property Details

gameObject public_oe property

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

id public_oe property

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

updatesBeforeRemoval public_oe property

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

wasMeshColliderEnabled public_oe property

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
return bool

wasMeshRendererEnabled public_oe property

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
return bool