Click or drag to resize

VisualRemoveAspect Method (Object)

Removes an aspect instance.

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

Parameters

aspect
Type: SystemObject
The aspect to add.
Examples
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