Click or drag to resize

VisualHasAspectT Method

Returns whether an aspect of a given type can be found on the visual.

Namespace:  Demo3D.Visuals
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntax
C#
public virtual bool HasAspect<T>()
where T : class

Type Parameters

T
The type of the aspect to find.

Return Value

Type: Boolean
True if the aspect can be found, or false if it can't.
Examples
C#
bool HasPhysicsGeometry(Visual visual) {
    return visual.HasAspect<PhysicsGeometryAspect>();
}
See Also