Search found 14 matches

by Canley
Wed Nov 09, 2022 9:37 am
Forum: General Discussion
Topic: Trouble saving list of prefab game objects
Replies: 7
Views: 1219

Re: Trouble saving list of prefab game objects

Ok so I'm able to both save and load the objects contained in my AOT Dict. However, what loads is the objects without the attached class data. (I'm also not able to see that data in the save unless it's hidden in the "refs" field. I've listed the class in the ES3 "Types" tab, and...
by Canley
Wed Nov 09, 2022 12:02 am
Forum: General Discussion
Topic: Trouble saving list of prefab game objects
Replies: 7
Views: 1219

Re: Trouble saving list of prefab game objects

ok this is working in my test at least, with Aot Dictionary. I took your ES3_Type code from this post: https://moodkie.com/forum/viewtopic.php?p=9688 and fixed it up with what I hope is correct. Posting that here in preference to necroing: #if UNITY_2021_1_OR_NEWER using System; using UnityEngine; u...
by Canley
Tue Nov 08, 2022 11:02 pm
Forum: General Discussion
Topic: Trouble saving list of prefab game objects
Replies: 7
Views: 1219

Re: Trouble saving list of prefab game objects

Hey Joel, Thanks very much for that. I get confused between AOT Lists and Lists TBH. I'll try a dictionary and report back :) I'm developing for iOS and I think(?) the current situation is that iOS now supports lists but Unity blocks them for iOS projects. Or so I've read. Hopefully I'll get success...
by Canley
Tue Nov 08, 2022 11:48 am
Forum: General Discussion
Topic: Trouble saving list of prefab game objects
Replies: 7
Views: 1219

Trouble saving list of prefab game objects

Hi - apologies if this is an easy question but I've been struggling with it for days. Trying to do this mostly in visual scripting as I'm very new to c#. I want to save a list of game objects. I've been able to save a simple int var just fine. The objects are prefabs and have a class attached: using...