◆ EditorAddComponentWithUndo()

delegate Component EditorAddComponentWithUndo ( GameObject  gameObject,
System.Type  componentType 
)
Parameters
gameObjectUnityEngine.Object reference
componentTypeSystem.Type reference
Returns
UnityEngine.Component reference