C# Class SMBaseAbstract.RemovedSurfaceHolder, InteractivePaint

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

Méthodes publiques

Свойство Type Description
gameObject GameObject
id UnityEngine.VR.WSA.SurfaceId
updatesBeforeRemoval int
wasMeshColliderEnabled bool
wasMeshRendererEnabled bool

Méthodes publiques

Méthode 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 méthode

Decrements the number of updates remaining by one
public DecrementUpdatesRemaining ( ) : void
Résultat void

RemovedSurfaceHolder() public méthode

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

SetColliderEnabled() public méthode

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

SetRendererEnabled() public méthode

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

id public_oe property

The identifier of this surface
public SurfaceId,UnityEngine.VR.WSA id
Résultat UnityEngine.VR.WSA.SurfaceId

updatesBeforeRemoval public_oe property

The number of remaining updates before the referenced mesh will be removed
public int updatesBeforeRemoval
Résultat 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
Résultat 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
Résultat bool