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: 19.01.00
Syntax
C#
public virtual bool HasAspect<T>()
where T : class

Type Parameters

T
The type of the aspect to find.

Return Value

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