Click or drag to resize

VisualRemoveAspect(Object) Method

Removes an aspect instance.

Namespace: Demo3D.Visuals
Assembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.01.00
Syntax
C#
public virtual void RemoveAspect(
	Object aspect
)

Parameters

aspect  Object
The aspect to add.
Example
C#
void RemoveSpecificRigidBody(Visual visual) {
    // Find a rigid body aspect and then remove that specific aspect
    var aspect = visual.FindAspect<RigidBodyAspect>();
    visual.RemoveAspect(aspect);
}
See Also