UnityLitJson icon indicating copy to clipboard operation
UnityLitJson copied to clipboard

Feature: allow an exporter to be registered for a base class

Open BBI-YggyKing opened this issue 11 years ago • 0 comments

Currently JsonMapper.RegisterExporter only registers an exporter for a specific type T. Additional type S derived from T will not use the registered exporter. An "bool inherit" flag passed to RegisterExporter (default false) would be useful.

This could, for example, allow all UnityEngine.Objects to be exported by their name. (Yes, I realize this wouldn't work at import time.)

BBI-YggyKing avatar May 21 '14 22:05 BBI-YggyKing