Search found 5 matches

by Exonto
Wed Aug 14, 2019 2:09 am
Forum: General Discussion
Topic: Private Fields in Abstract Base Class
Replies: 3
Views: 1548

Re: Private Fields in Abstract Base Class

Interesting, okay. It seems this is not a hard and fast rule though since I can serialize private primitives and other classes sometimes. Thank you.
by Exonto
Tue Aug 13, 2019 2:17 am
Forum: General Discussion
Topic: Private Fields in Abstract Base Class
Replies: 3
Views: 1548

Private Fields in Abstract Base Class

Hello, I am running into a pretty odd issue where a private field in an abstract base class is failing to be serialized despite having the [SerializeField] attribute. But when I change the field from private to public or protected, then it gets serialized correctly. This is made even more strange si...
by Exonto
Mon Aug 12, 2019 7:47 pm
Forum: General Discussion
Topic: Serializing Abstract Classes
Replies: 2
Views: 1311

Re: Serializing Abstract Classes

Thanks! Just wanted to make sure.
by Exonto
Mon Aug 12, 2019 3:39 pm
Forum: General Discussion
Topic: High Level Save Manager
Replies: 2
Views: 1296

Re: High Level Save Manager

Whatever you are saving, you will need to have a reference to. I am also saving an inventory system (among other things), however, there is no chance of me forgetting to save a particular item. This is because rather than having individual references to each item and saving those items individually,...
by Exonto
Mon Aug 12, 2019 3:21 am
Forum: General Discussion
Topic: Serializing Abstract Classes
Replies: 2
Views: 1311

Serializing Abstract Classes

Hello,

I am a little confused about the "Non-abstract classes with a parameterless constructor" requirement, specifically the non-abstract portion.

I have successfully been able to serialize an object which has an abstract base class so I'm not sure if I'm missing something?