Search found 30 matches
- Thu Oct 17, 2019 4:32 pm
- Forum: Feature Requests
- Topic: - Post your Feature Requests in this thread -
- Replies: 85
- Views: 112328
Re: - Post your Feature Requests in this thread -
Hi there, I'll see about adding support for StringBuilder in the next update using the ToString() method. It's not possible to seralise the StringBuilder through it's fields because the fields are inaccessible (more specifically, the fields are marked as internal so cannot be accessed outside their...
- Thu Oct 17, 2019 8:17 am
- Forum: Feature Requests
- Topic: - Post your Feature Requests in this thread -
- Replies: 85
- Views: 112328
Re: - Post your Feature Requests in this thread -
I haven't found any reference on 'StringBuilder' in here. I have tried to save a list of StringBuilder but the list is always containing empty elements. I suppose that StringBuilder isn't supported. Would it be possible to support StringBuilder? Hi there, StringBuilder does not provide us with any ...
- Tue Oct 15, 2019 7:07 pm
- Forum: Feature Requests
- Topic: - Post your Feature Requests in this thread -
- Replies: 85
- Views: 112328
Re: - Post your Feature Requests in this thread -
I haven't found any reference on 'StringBuilder' in here.
I have tried to save a list of StringBuilder but the list is always containing empty elements.
I suppose that StringBuilder isn't supported.
Would it be possible to support StringBuilder?
I have tried to save a list of StringBuilder but the list is always containing empty elements.
I suppose that StringBuilder isn't supported.
Would it be possible to support StringBuilder?
- Mon Aug 20, 2018 12:25 pm
- Forum: General Discussion
- Topic: Does 'ISerializable' work with ES3?
- Replies: 4
- Views: 3138
Re: Does 'ISerializable' work with ES3?
Hi there, Automatic serialisation (i.e. when no pre-existing ES3Type exists) happens in the Write and Read methods of ES3ReflectedType. All the best, Joel Thanks for the tip. I'm not sure why, but I had to put the call in the 'Write()' method of the 'ES3ObjectType' type, but it was close enough. An...
- Mon Aug 20, 2018 11:48 am
- Forum: General Discussion
- Topic: Does 'ISerializable' work with ES3?
- Replies: 4
- Views: 3138
Re: Does 'ISerializable' work with ES3?
Hi there, Easy Save does not use the ISerializable interface because the majority of Unity's API does not use it at runtime. Also Easy Save does not have anything similar to GetObjectData() as it writes data directly to the stream, which significantly reduces memory usage and improves performance. ...
- Mon Aug 20, 2018 9:58 am
- Forum: General Discussion
- Topic: Does 'ISerializable' work with ES3?
- Replies: 4
- Views: 3138
Does 'ISerializable' work with ES3?
I've tried a basic implementation of 'ISerializable', but it doesn't seem to work when ES3 is saving my class. And I found no references to 'ISerializable' in ES3 code. Have I missed something? If I haven't and ES3 do not call 'GetObjectData()', is there a way to call a given method when ES3 is seri...
- Fri May 18, 2018 9:42 am
- Forum: General Discussion
- Topic: Is there a way to save only certain variables in a class?
- Replies: 5
- Views: 4245
Re: Is there a way to save only certain variables in a class
Hi there, As this is the first time such an attribute has been requested, I've added a feature request here: https://moodkie.com/forum/posting.php?mode=post&f=14 Note that the method you describe will not work for types for which there is an ES3Type file, as attributes aren't checked in this ca...
- Fri May 18, 2018 8:59 am
- Forum: General Discussion
- Topic: Is there a way to save only certain variables in a class?
- Replies: 5
- Views: 4245
Re: Is there a way to save only certain variables in a class
You can also add the attribute 'Obsolete' to a field or property, that way Unity will still serialize it, but not ES3. Note that will display a warning when compiling due to the use of an obsolete member. The warning can be avoided if you search in ES3 source code for the 'Obsolete' attribute, and a...
- Thu May 17, 2018 3:35 pm
- Forum: General Discussion
- Topic: Inherited fields stored after the children fields
- Replies: 1
- Views: 1915
Inherited fields stored after the children fields
I noticed that the inherited fields are stored after the children ones.
So if you have a base class with a 'Name' field, then the name will always be at the bottom of the JSON file, which isn't user-friendly.
Is it possible to store the parents fields first?
So if you have a base class with a 'Name' field, then the name will always be at the bottom of the JSON file, which isn't user-friendly.
Is it possible to store the parents fields first?
- Thu May 17, 2018 7:30 am
- Forum: General Discussion
- Topic: Generic types
- Replies: 1
- Views: 2066
Generic types
I just realized that generic types aren't supported by ES3 (except for some predefined exceptions). Is it because of a technical problem? Are there some plans to support them? I know that it is possible to create a non-generic specific class inheriting the generic one, but some times it's not really...