Method AddComponentCopy
| Improve this Doc View SourceAddComponentCopy<T>(GameObject, T)
Adds a new copy of the provided component to a gameObject
Declaration
public static Component AddComponentCopy<T>(this GameObject gameObject, T duplicate) where T : Component
Parameters
Type | Name | Description |
---|---|---|
GameObject | gameObject | |
T | duplicate |
Returns
Type | Description |
---|---|
Component |
Type Parameters
Name | Description |
---|---|
T |