Search found 16 matches
- Thu Jun 30, 2022 12:56 pm
- Forum: Feature Requests
- Topic: Support for NativeHashMap/NativeList/NativeQueue
- Replies: 1
- Views: 7066
Re: Support for NativeHashMap/NativeList/NativeQueue
Yes, the not-included-default packages are a headache. One option is to do what Esoteric Software do with Spine, their animation software and Unity runtime, which is to provide bundled up 'extension' packages that users then download in addition to the main library. In Spine's case, it's a bunch of ...
- Thu Jun 30, 2022 12:49 pm
- Forum: Feature Requests
- Topic: Support for NativeArray<T0> [ADDED]
- Replies: 5
- Views: 12664
Re: Support for NativeArray<T0> [ADDED]
Thanks Joel, I'll skip the early access only because I'm looking mainly at NativeHashMap (and NativeMultiHashMap) rather than NativeArray. Glad it's coming together though!
- Thu Jun 30, 2022 1:04 am
- Forum: Feature Requests
- Topic: Support for NativeArray<T0> [ADDED]
- Replies: 5
- Views: 12664
Re: Support for NativeArray<T0> and other low-level collections
Hi! Any movement on this feature, now we're a few years down the line and the collections package is more mature? Right now I'm unpacking my Unity.Collections.NativeHashMap into a System.Collections.Generic.Dictionary on save, and then back again on load. It's not that big a deal, it's just unnecess...
- Mon Jun 25, 2018 2:49 pm
- Forum: General Discussion
- Topic: Syntax Errors on Saving Dictionary of Lists
- Replies: 3
- Views: 2948
Re: Syntax Errors on Saving Dictionary of Lists
Just had a similar error on a list of enum values: public List<Portal.SpawnableTypes> ItemsToSpawn; Generates this in the ES3Type: case "ItemsToSpawn": instance.ItemsToSpawn = reader.Read<System.Collections.Generic.List<Portal+SpawnableTypes>>(); break; A misplaced '+' there, instead of a ...
- Mon Jun 25, 2018 2:10 pm
- Forum: General Discussion
- Topic: Syntax Errors on Saving Dictionary of Lists
- Replies: 3
- Views: 2948
Syntax Errors on Saving Dictionary of Lists
Hi there, on the supported types page for ES3 it says that we can save: Arrays, Lists, Dictionaries, Queues, Stacks and HashSets of supported types But a field like this: private Dictionary<int, List<string>> saveMeIfYouCan; generates an unusable ES3Type due to some mangled syntax: case "saveMe...
- Fri Jun 22, 2018 1:53 pm
- Forum: General Discussion
- Topic: FormatException with Nullable int
- Replies: 2
- Views: 2818
Re: FormatException with Nullable int
Thanks Joel, much appreciated.
- Thu Jun 21, 2018 2:59 pm
- Forum: General Discussion
- Topic: FormatException with Nullable int
- Replies: 2
- Views: 2818
FormatException with Nullable int
Hi, I've encountered this error that sounds quite similar to the one reported in this thread . I'm using the Scripting Runtime Version '.NET 4.x Equivalent', with Mono and .NET 4.x. I have a nullable int that I'm trying to save/load. Full stack trace on Load: FormatException: Expected '{' or "n...
- Tue Jun 19, 2018 3:37 pm
- Forum: General Discussion
- Topic: Custom ES3Type Troubles
- Replies: 10
- Views: 14559
Re: Custom ES3Type Troubles
Right, right, I see. Thanks for bearing with me. In my game, I don't think I should be calling writer.WriteProperty<Trees[]>, those aren't properties or components attached to my TreeManager, these are separate game objects, with Colliders and probably other references. Another higher-level question...
- Tue Jun 19, 2018 1:56 pm
- Forum: General Discussion
- Topic: Custom ES3Type Troubles
- Replies: 10
- Views: 14559
Re: Custom ES3Type Troubles
By 'nesting' Save calls I mean, calling ES2.Save, and then within the ES2Type calling ES2.Save. For example: • Call ES2.Save<TreeManager>(...) • In the ES2UserType_TreeManager, save some higher level Manager-state stuff. • Oh, and while we're here and have access to all the Trees, iterate through al...
- Mon Jun 18, 2018 2:56 pm
- Forum: General Discussion
- Topic: Custom ES3Type Troubles
- Replies: 10
- Views: 14559
Re: Custom ES3Type Troubles
Thanks Joel, okay. I think I'm making some progress, I removed an ES3Type experiment I'd forgot about and these errors have gone away and I'm starting to create ES3Types. One thing I was doing with ES2 was nesting ES2.Save calls. For example, I'm saving a TreeManager and it's various fields. But the...