PrefabSystem Clone is a Unity project developed using the Prototype Pattern, which provides functions to clone prefabs and procedurally generate different geometric shapes.
- Prefab Cloning: Clone predefined geometric shapes (Cube and Sphere) at specified positions.
- Dynamic Shape Generation: Generate 3D shapes like cubes and spheres using procedural methods.
- Object Pooling: Improve performance by using object pooling techniques for instantiated objects.
- Easy to Use: The provided functions make it simple to create clones and procedural shapes in your Unity projects.
- Clone this repository to your local machine.
- Open the project in Unity.
- Explore the
ProceduralCloner
script for functions and usage examples.
You can use the ProceduralCloner
script to clone prefabs or create procedural shapes:
// Clone a cube at a specific position
ProceduralCloner.Clone(new Vector3(0f, 0f, 0f), "Cube");
// Create a procedural sphere at a specific position
ProceduralCloner.CreateSphere(new Vector3(2f, 0f, 0f));