
Effortlessly place, align, and preview prefabs on terrain with snap-to-grid logic, rotation, and path placement—perfect for RTS, city builders, and base construction games.Snap Grid Manager is a powerful and intuitive editor+runtime prefab placement system designed for Unity developers building RTS, simulation, or sandbox-style games.It includes: Snap-to-Grid Placement: Click anywhere on the terrain and place prefabs snapped to a customizable grid. Rotation & Preview: Rotate prefabs with one key and preview placements live using a transparent ghost system. Path-Based Placement: Use mouse clicks to define a curved or straight path, then automatically place prefabs along that path using Catmull-Rom or linear interpolation. Terrain Flattening: Auto-flattens terrain before placing structures to prevent clipping. Editor & Play Mode Support: All features work both inside the Editor and during runtime (ideal for custom level editors or God Mode debug tools). Randomizer: Apply random rotation, scale, and materials for natural variation.Parts of this tool were initially prototyped using AI-assisted scripting (ChatGPT by OpenAI).All code was manually reviewed, optimized, and extended by the developer to ensure real-world usability, bug-free performance, and editor integration.No AI-generated assets (textures, models, audio) are included — only custom code and prefabs created specifically for this package.The final system has been playtested, structured for maintainability, and packaged by hand.Features: Modular design: Easily extendable and cleanly structured. Snap-to-grid placement with customizable grid size. Ghost placement preview with custom color and transparency. Catmull-Rom and linear path placement with adjustable spacing. Terrain flattening under placed prefabs (optional). Live rotation during placement using customizable snap angle. Supports both Editor and Play Mode interaction. Randomizer system for rotation, scale, and materials. Input support: Mouse click to place, R to rotate, Shift to pan camera.Includes:✅ Full source code (C#)✅ Demo scene with terrain, camera controls, and UI✅ One code-generated house prefab (CC0-compatible, no license required)✅ Editor custom inspector with foldouts and buttons✅ PDF documentationParts of this tool were initially prototyped using AI-assisted scripting (ChatGPT by OpenAI). All code was manually reviewed, optimized, and extended by the developer to ensure real-world usability, bug-free performance, and editor integration.No AI-generated assets (textures, models, audio) are included — only custom code and prefabs created specifically for this package.The final system has been playtested, structured for maintainability, and packaged by hand.