Method AddAdditionalData
AddAdditionalData<T, AdditionalT>(GameObject, Action<AdditionalT>)
Add the appropriate AdditionalData to the given GameObject and its children containing the original component
Declaration
public static void AddAdditionalData<T, AdditionalT>(GameObject go, Action<AdditionalT> initDefault = null) where T : Component where AdditionalT : Component
Parameters
Type | Name | Description |
---|---|---|
GameObject | go | The root object to update |
Action<AdditionalT> | initDefault | [Optional] The default value to use if there is no AdditionalData |
Type Parameters
Name | Description |
---|---|
T | The type of the original component |
AdditionalT | The type of the AdditionalData component |