VisualFindAspectsT Method |
Find all aspects that can be cast to the given type.
Namespace: Demo3D.VisualsAssembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntaxpublic virtual IEnumerable<T> FindAspects<T>()
where T : class
Type Parameters
- T
- The type of the aspect to find.
Return Value
IEnumerableTAll aspects that can be cast as the given type.
Exampleint CountRenderables(Visual visual) {
return visual.FindAspects<PhysicsGeometryAspect>().Count();
}
See Also