Question by
unity_7YYbsKg96OwkdQ · Oct 02, 2017 at 10:06 AM ·
prefabspritescript.dynamicmap making
Is it possible to make multiple prefabs out of a single prefab for use in the map editor?
I've got a prefab that can change its sprite based on 3 different field (two integers and a string). Putting the prefab onto the map and setting the values updates the sprite properly. In the map editor window only the "default" case shows up but I want every possible version of this object to be available in the map editor window with the correct sprite. I've considered just making prefabs but when I copy it in the Project window some settings are disregarded: sorting layer and a script component. Also its about 200 sprites.
Is there any way to write a script to instantiate all of these prefabs so that they are available in the map editor window?
Comment