|
I want to know how to create an empty prefab and in that prefab put the gameObject. But I dont need the page were you find that I actually know is http://unity3d.com/support/documentation/ScriptReference/EditorUtility.CreateEmptyPrefab.html to create a prefab and http://unity3d.com/support/documentation/ScriptReference/EditorUtility.ReplacePrefab.html to put the gameObject to a prefab but I dont understand it to well so please, someone could write me how to do that in a script. Thanks for future :)
(comments are locked)
|
|
Take a look at: How do I programmatically assign a GameObject to a prefab? There is some code provided there (in C#), so hopefully you can gain an understanding from it.
(comments are locked)
|
|
NOTE: THIS IS IN C# You could always create one script called "SaveData" or something similar and have this in it
I apologize for all the stuff in there those are just what determines my skills/vitals... If you want to learn how to set up those check out the tutorial by BurgZergArcade on youtube... Im not going to give you a link to his videos for two reasons...
I apologize if this doesn't help because of all you have to do to get it to work but i tried... you will get alot of errors if you don't follow the tutorial but basically all you have to do is have the voids for loading and saving you character and than have the PlayerPrefs.SetInt(((coding...
Oct 25 '10 at 02:23 AM
DoneDesign
(comments are locked)
|
|
I don't know if you can do that.... You can create a "base" prefab and append on any extra components needed. Unity is not good at doing things that it wasn't designed to do... You absolutely can create prefabs and assign gameObjects to them via script.
Oct 07 '10 at 11:21 PM
Marowi
(comments are locked)
|
