Language
Edit

DataConsumerGOBase.AddKeyPaths(HashSet<Component>) Method

Definition

Once components have been identified, add keypaths for them.

protected virtual void AddKeyPaths(System.Collections.Generic.HashSet<UnityEngine.Component> componentsToManage);
abstract member AddKeyPaths : System.Collections.Generic.HashSet<UnityEngine.Component> -> unit
override this.AddKeyPaths : System.Collections.Generic.HashSet<UnityEngine.Component> -> unit
Protected Overridable Sub AddKeyPaths (componentsToManage As HashSet(Of Component))

Parameters

componentsToManage
HashSet<UnityEngine.Component>

The found components to be managed.

Remarks

If there is a 1:1 or 1:many relationship between keypaths and components, the default behavior breaks down the work for you.

However, if there is a many:many relationship, then overriding this method makes more sense to avoid creating multiple listeners per keypath.

Applies to