Quantcast
Channel: Answers for "How to create and save a gameobject to a prefab with a script"
Browsing all 6 articles
Browse latest View live

Answer by stringa

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...

View Article


Answer by Marowi

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.

View Article


Answer by DoneDesign

NOTE: THIS IS IN C#You could always create one script called "SaveData" or something similar and have this in itusing UnityEngine; using System; public class SaveData : MonoBehaviour { public void...

View Article

Answer by stringa

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...

View Article

Answer by Marowi

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.

View Article


Answer by DoneDesign

NOTE: THIS IS IN C#You could always create one script called "SaveData" or something similar and have this in itusing UnityEngine; using System; public class SaveData : MonoBehaviour { public void...

View Article
Browsing all 6 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>