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
Syntaxpublic virtual bool HasAspect<T>()
where T : class
Type Parameters
- T
- The type of the aspect to find.
Return Value
Type:
BooleanTrue if the aspect can be found, or false if it can't.
Examplesbool HasPhysicsGeometry(Visual visual) {
return visual.HasAspect<PhysicsGeometryAspect>();
}
See Also