- Home /
Create a custom prefab stage
I'm making an infinitely generated game for mobile and would like to make handling pieces of the levels with as much performance as possible. I'm thinking of having a script instantiate a pool of "building blocks" that will be positioned according to a "blueprint" and keep placing them in front of the last and deactivating older pieces and keep reusing them. It sounds like prefabs (I know) but the advantage is I could mix and match the "building blocks" and get less repetitive levels by being able to create lots of "blueprints". Now my question is how could I achieve creating an isolated scene similar to the prefab stage when editing a prefab? In that scene I'll place prefabs and record their position and rotation and save it inside a scriptable object asset as the "blueprint". I've been searching through source code on how to create a prefab stage or a stage of some kind but couldn't find how Unity does this. Alternatively I know I can create an empty scene myself and handle things myself, but I'm wondering if the code to do that is already available. Any help on this matter would be greatly appreciated.
Your answer
Follow this Question
Related Questions
I can't move in the scene. How do I fix it? 1 Answer
How to handle Serializable classes in a CustomEditor? 0 Answers
Initializing 2D array via inspector 3 Answers
Scrollbar in Inspector 1 Answer
Handles not displaying 1 Answer