Build System
Use socket snapping for modular connections and free placement for objects that do not ... Preview & Dissolve Effects ... The C# source code is included for customization and extension.
by adenvik
Price History +
- BuildSystemCollection: Holds prepared runtime building entries derived from the JSON catalog, including prefab references and placement metadata.
- BuildSystemController: Handles preview positioning, rotation, placement and removal, with public methods for custom input and UI integration.
- Placement Validation: Includes collision and location checks, behaviour-specific support and anchor validation, and configurable terrain penetration for supported building types.
- BaseRestriction: Provides placement/removal validation methods and lifecycle hooks for custom game rules. Custom restrictions require registration in the controller.
- Inventory Integration: Resource-cost metadata and restriction hooks are provided. Inventory checks, resource consumption and refunds require your own implementation.
- Events: Exposes events for controller state changes, placement attempts, successful placement and removal.
- Diagnostics: Includes configurable diagnostic messages and editor Gizmos for bounds and anchors.
- Persistence Example: Demonstrates saving and restoring building records; it does not automatically persist arbitrary component or inventory state.
Build System is a configurable construction framework for Unity, designed for modular structures and freely placed props. It combines socket-based snapping, placement validation, and visual preview and dissolve effects, with editor tools for configuring your own buildable assets.
🧱 Modular Structures & Props
Build with foundations, walls, floors, roofs, stairs, and curved modular pieces using compatible socket layouts. Add complete houses, wall-mounted objects, furniture, outdoor props, and vegetation with placement settings suited to each object.
Configure building behaviour, bounds, anchors, and placement rules per prefab, then register your assets through the included collection editor.
🔍 Configurable Placement Validation
Control where objects can be placed using oriented bounding-box checks or supported collider shapes. Configure surface support anchors, obstacle detection, and terrain penetration limits to match your building rules.
Use socket snapping for modular connections and free placement for objects that do not require a modular layout.
🎨 Preview & Dissolve Effects
Show placement feedback with configurable preview materials and use dissolve effects when objects appear or are removed.
URP is the default setup. Matching materials and shaders for Built-in and HDRP are included as separate support packages. The Project Setup tool installs the selected materials and configures the demo for your project's render pipeline.
⚙️ Collections & Integration
Manage prefab references, icons, categories, and resource metadata through the JSON collection editor. Use controller events and C# APIs to connect your own input, UI, inventory, and game rules.
The C# source code is included for customization and extension. Inventory transactions, multiplayer synchronization, and server-side validation require custom implementation.
📦 Included Demo & Documentation
Explore the workflow with an included demo scene, example building prefabs, placement UI, local JSON save/load, and distance-based loading of saved demo buildings.
An English PDF manual covers setup, prefab configuration, collections, and integration.
Requirements:
Unity 2022.3 or later. The demo requires Unity UI (uGUI). URP and HDRP setups require the corresponding Unity render-pipeline package; Built-in does not require an SRP package.