Method GetAdditionalData
GetAdditionalData<T>(Object[], Action<T>)
Get the AdditionalData of the given component
Declaration
public static T[] GetAdditionalData<T>(Object[] targets, Action<T> initDefault = null) where T : Component
Parameters
| Type | Name | Description |
|---|---|---|
| Object[] | targets | The object to seek for AdditionalData |
| Action<T> | initDefault | [Optional] The default value to use if there is no AdditionalData |
Returns
| Type | Description |
|---|---|
| T[] | return an AdditionalData component |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the AdditionalData component |