Worked like a charm!
Thank you for your support.
Cheers
Search found 8 matches
- Fri Aug 18, 2023 8:27 am
- Forum: General Discussion
- Topic: Lots of references
- Replies: 14
- Views: 1819
- Wed Aug 16, 2023 11:25 am
- Forum: General Discussion
- Topic: Lots of references
- Replies: 14
- Views: 1819
Re: Lots of references
It's not just slightly bigger if you have 100 objects all saved 10 times... And it is causing problem as I mentioned before... Can I somehow tell serializer that interface will be Unity Object? Now I retype it to base class in Reader/Writer in ES3Type Script. But I need to do it for each Type in fut...
- Tue Aug 15, 2023 4:57 pm
- Forum: General Discussion
- Topic: Lots of references
- Replies: 14
- Views: 1819
Re: Lots of references
I am sorry, it won't happen again.
I am sending it again. There are no prefabs. The problem is replicable without them. I think the problem will lay somewhere with my class inheritance, because interfaces without it works fine.
I am sending it again. There are no prefabs. The problem is replicable without them. I think the problem will lay somewhere with my class inheritance, because interfaces without it works fine.
- Tue Aug 15, 2023 1:59 pm
- Forum: General Discussion
- Topic: Lots of references
- Replies: 14
- Views: 1819
Re: Lots of references
Oh yes! I am sorry I forget to atttache screenshot. By it is as Ref. And I am not using settings. But after some testing I managed to recreate problem in small project. I am sending it as package. If you run it and hit "S" it will save. ClassOne have dictionary with interface, where is Der...
- Tue Aug 15, 2023 11:34 am
- Forum: General Discussion
- Topic: Lots of references
- Replies: 14
- Views: 1819
Re: Lots of references
Yes, I understand that. But you can clearly see data saved twice no? Here is first occurance, where it should be saved as ref : "deliveryBuildings" : [ { "Item1" : { "__type" : "RoguelikeStrategy.Core.PowerSystem.PowerGenerator,Assembly-CSharp", "_ES3Ref&...
- Tue Aug 15, 2023 9:31 am
- Forum: General Discussion
- Topic: Lots of references
- Replies: 14
- Views: 1819
Re: Lots of references
With double saving. It seems problem is that I am saving "deliveryBuildings" as Interface not as class. Where PowerGenerator is saved as abstract base class it is working correctly(saved with __ES3Ref), but when when saved as interface it is saved with all data. So when I have two producti...
- Tue Aug 15, 2023 9:23 am
- Forum: General Discussion
- Topic: Lots of references
- Replies: 14
- Views: 1819
Re: Lots of references
I am not sure if I can replicate it in simple scene as that problem occur when scene is complicated. Can I somehow investigate why it didn't load from prefab even when prefabID is correct? To be precise problem is that my building is trying access Data(which is ScriptableObject saved in prefab) in A...
- Tue Aug 15, 2023 8:25 am
- Forum: General Discussion
- Topic: Lots of references
- Replies: 14
- Views: 1819
Lots of references
Hello, I have city builder game and I am trying to save it. But I have lots of references between buildings and roads. I have non-monobehaviour class roadblock, which holds references to all connected roads and buildings. And each road and buildings holds reference to roadblock on which its placed. ...