Overview
Works with existing prefabs.
Simply add the scripts and ScriptableObjects — no need to modify your existing systems.
The Physical Crafting System allows you to create a hands-on crafting experience:
- True Physical Crafting: All materials are GameObjects in your scene, tracked automatically by a MaterialHandler using triggers.
- Recipe-Based: Use ScriptableObjects to define recipes with up to three materials per recipe and specify the amount needed.
- Spawn Products: Outputs are instantiated at a designated spawn point with optional delay between multiple products.
- NoEnoughMaterial – triggers if insufficient materials are available.Event Hooks: Customize the crafting workflow with UnityEvents:
ProductionStarted – triggers when all materials are available and crafting begins.
ProductionFinished – triggers when all products are spawned.
- Flexible Integration: Works with both UI buttons and physical in-scene buttons for a tactile experience.
This system is lightweight, modular, and fully data-driven via ScriptableObjects, yet keeps the physical presence of materials and products for maximum visual clarity.