Serialize Interfaces! View on Asset Store (opens in new tab)

Package details

Latest version
1.1.4
Last updated
First released
Unity version
2020.1.17 or later
Package size
31 KB
Files
18
Favorites
145
Views in the past week
14

Price tracking

Last checked
Tracked since
Lowest recorded
Free on

Keywords

Serialize Interfaces!

by ayellowpaper (opens in new tab)

4.0 / 5 · 26 ratings

Ratings by stars
Number of ratings for each star rating
5 stars 15
4 stars 3
3 stars 3
2 stars 3
1 star 2

Reference and serialize Unity Objects with a specified interface

Price Free

Get it free on Asset Store (opens in new tab)

Affiliate link · Purchases support this site

Price history

Last 6 months

USD
Price history for Serialize Interfaces!, 6 months Current Free; lowest Free; highest Free in this period. $0 Jun Jul Aug Sep Oct Nov

Asset preview

1 / 5

Serialize Interfaces! screenshot 1

Serialize Interfaces! screenshot 1

About this asset

Why?
SerializeReference from Unity already allows you to store plain structs and objects with the specified interface, but not Unity Objects. "Serialize References!" is here to solve this problem.
What does it do?
This is for the coders. Quickly serialize references to Unity Objects like MonoBehaviour, ScriptableObject and more, that implement the specified interface. It's super easy and works out-of-the-box with a custom object picker that filters your project and hierarchy in a smart way. You can pick between the class to serialize it or an attribute to decorate the field with the required validation. I'ts free, lightweight and open source. Give it a try!
How does it help me?
For one, you can finally use interfaces on your MonoBehaviours. Another big benefit is that it allows you to rethink how you architect your game: You can reference either a MonoBehaviour or Scriptable Object that implement the given interface. This allows you to either reference a scene component or a project asset, while still expecting a specified functionality/interface. This opens up new ways to think about code and project architecture.

From the publisher's Asset Store listing.

Technical details

- Reference and serialize UnityEngine.Objects that implement a given interface

- Drag and drop in the inspector

- Inspector Validation

- Custom Object Selector that scans for interfaces in your project and scene

- Works with List<> and Array