Serialise private abstract fields

Vote for new features, or make your own requests here.
Post Reply
User avatar
Joel
Moodkie Staff
Posts: 4824
Joined: Wed Nov 07, 2012 10:32 pm

Serialise private abstract fields

Post by Joel »

Status

Added in 3.3.1

Complexity

4/10

Description

Currently if a class derives from an abstract class, any private fields in that abstract class will not be serialised when saving that class, even if it has a [SerializeField] attribute. This is because .NET does not treat the abstract class as it would a concrete parent class, so it doesn't not reflect the abstract class when getting properties.

This feature request asks that the [SerializeField] attribute is honoured. This would require use to a recurse through all parent classes to do so, which would decrease performance. As such, it is recommended that this is provided as a setting which is disabled by default.
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
User avatar
Joel
Moodkie Staff
Posts: 4824
Joined: Wed Nov 07, 2012 10:32 pm

Re: Serialise private abstract fields

Post by Joel »

This will be supported in 3.3.1
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Post Reply