◆
AddComponentAppropriately< T >()
static T AddComponentAppropriately< T >
(
this GameObject
objectToAddComponent
)
static
Template Parameters
T
the type of component to be added
Parameters
objectToAddComponent
the GameObject to which the component should be added
Returns
the newly added component
Type Constraints
T
:
UnityEngine.Component
EyE
Unity
Extensions
GameObjectExtensions