Add prefabes in Editor class?

Hi,

How can i add a prefab to GameObject in Editor class?

Thanks.

1 Answer

1

http://unity3d.com/support/documentation/ScriptReference/EditorUtility.InstantiatePrefab.html

I want to add a prefabe as a child to gameobject.

–

Yes, that's exactly what that example does.

–