Undo.AddComponent
static function AddComponent(gameObject: GameObject, type: Type): Component;
static Component AddComponent(GameObject gameObject, Type type);
static def AddComponent(gameObject as GameObject, type as Type) as Component
Description

static function AddComponent(gameObject: GameObject): T;
static T AddComponent(GameObject gameObject);
static def AddComponent(gameObject as GameObject) as T
Description