Language
Edit

DataConsumerGOBase.GetComponentTypes Method

Definition

Get the component types.

protected virtual Type[] GetComponentTypes();
abstract member GetComponentTypes : unit -> Type[]
override this.GetComponentTypes : unit -> Type[]
Protected Overridable Function GetComponentTypes () As Type()

Returns

Type[]

List of component types.

Remarks

If your data consumer modifies components, particularly all components found of a certain type, then declaring them here will result in AddVariableKeyPathsForComponent(Component) to be called for each found component in this or is specified in child objects.

If you do not operate on components, then no need to override this method. Instead simply override InitializeDataConsumer() for one-time initialization and override AttachDataConsumer() for any setup that should occur each time your class is enabled, in which you should call AddKeyPathListener(String, IDataSource) for any key paths that you want the datasource to notify of any changes.

Applies to