Tag Info

New answers tagged


Simple Answer Use a class to load the original prefab from Resources.Load(string prefabPath, typeof(GameObject)); Store this returned prefab into a resource pool class by path key. For instance: Dictionary<string, GameObject> prefabLookup; You can then grab the original prefab anytime you need it. Use a helper method to automatically load at ...


(I'm having a hard time understanding your explanation of what you're trying to do. So I'm answering based on what I think you're trying to do, but my apologies if I misunderstood.) I would use a Dictionary for this purpose. That data type is great for associating other data with specific objects. Also I would use List instead of ArrayList, so both the ...

Top 50 recent answers are included