Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

Home
Tools
Utilities
This content is hosted by a third party provider that does not allow video views without acceptance of Targeting Cookies. Please set your cookie preferences for Targeting Cookies to yes if you wish to view videos from these providers.
1/3
Modular Code Block is a powerful tool for organizing and managing structured data in Unity. It supports modular, reusable lists with a custom editor UI, making workflows efficient and scalable.
Render pipeline compatibility
The Built-in Render Pipeline is Unity’s default render pipeline. It is a general-purpose render pipeline that has limited options for customization. The Universal Render Pipeline (URP) is a Scriptable Render Pipeline that is quick and easy to customize, and lets you create optimized graphics across a wide range of platforms. The High Definition Render Pipeline (HDRP) is a Scriptable Render Pipeline that lets you create cutting-edge, high-fidelity graphics on high-end platforms.
Unity VersionBuilt-inURPHDRP
6000.0.23f1
Compatible
Compatible
Compatible
Description

Modular Code Block is a flexible and powerful tool designed to simplify the management of structured data in Unity. It allows developers to create and organize modular data lists using a custom generic system (MCBList<T>).

With built-in custom PropertyDrawers, this package enhances the Unity Inspector, making it easier to manage lists of complex objects without clutter. It supports nested data, serialization, and type recognition, ensuring an intuitive and efficient workflow.

Key Features:

Modular Data Management – Easily store and manage structured data in lists.
Custom Inspector UI – View and edit data seamlessly with a user-friendly UI.
Automatic Type Recognition – Derived classes automatically appear in the list.
Flexible & Scalable – Suitable for inventory systems, character attributes, and more.
Full Source Code Included – Customize and extend as needed.

⚠️ Warning: Avoid renaming classes after adding them to the list, as Unity’s serialization depends on class names.

Perfect for game developers looking to organize and manage dynamic data effortlessly! 🚀

Technical details

Technical Details

  • Supported Unity Versions: Unity 2020.3+ (Optimized for Unity 6)
  • API Compatibility: .NET Standard 2.1
  • Serialization Support: Fully supports Unity’s SerializeReference for polymorphic lists
  • Editor UI: Custom PropertyDrawer using UI Toolkit (UIToolkit) for improved list visualization
  • Type Safety: Uses generics (MCBList<T>) for structured and type-safe data handling
  • Dynamic Class Selection: Automatically detects and allows selection of derived classes in the Unity Inspector
  • Find & Filter Support: Built-in search functionality (Find(Predicate<T>)) to locate specific list items
  • Optimized for Performance: Uses Unity's native serialization, avoiding unnecessary allocations
  • Full Source Code Included: Easily extend and modify for your project needs

Important Notes

  • Do not rename serialized classes after adding them to the list, as Unity references them by class name.
  • Requires Unity Editor UI Toolkit for custom UI rendering.
  • Works with MonoBehaviour & ScriptableObjects, making it suitable for various game development needs.

This package is ideal for organizing and managing structured data in Unity with efficiency and flexibility! 🚀

MCB - Modular Code Block

(not enough ratings)
$4.99
Seat
1
Updated price and taxes/VAT calculated at checkout
Refund policy
This asset is covered by the Unity Asset Store Refund Policy. Please see section 2.9.3 of the EULA for details.
Secure checkout:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
License type
File size
55.2 KB
Latest version
1.0
Latest release date
Mar 19, 2025
Original Unity version
6000.0.23
Support
Visit site
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
Language
Feedback
Partners Program
Partners
USD
EUR
Copyright © 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR