Returns whether an aspect of a given type can be found on the visual.
Namespace: Demo3D.VisualsAssembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.01.00
Syntaxpublic virtual bool HasAspect<T>()
where T : class
Type Parameters
- T
- The type of the aspect to find.
Return Value
BooleanTrue if the aspect can be found, or false if it can't.
Examplebool HasPhysicsGeometry(Visual visual) {
return visual.HasAspect<PhysicsGeometryAspect>();
}
See Also