Click or drag to resize

AspectComponentBaseFindCreateManagedAspectT Method

Find or, if one isn't found, create a managed aspect of the desired type in this aspect's container. The managed aspect will be owned by the declared aspect.

Namespace:  Demo3D.Visuals
Assembly:  Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntax
C#
public T FindCreateManagedAspect<T>(
	AspectComponentBase manager
)
where T : new(), AspectComponentBase

Parameters

manager
Type: Demo3D.VisualsAspectComponentBase
The manager of the found aspect.

Type Parameters

T
The type of the aspect to find or create.

Return Value

Type: T
The matching aspect if one is found, otherwise a newly created aspect.
See Also