AddComponent

AddComponent(GameObject, Type)

public Component AddComponent(GameObject gameObject, Type type) ;

Description

Add component.

Parameters

Parameter Name Description
gameObject GameObject
type Component type

Returns

Component