EduardMalkhasyan / Serializable-Dictionary-Unity

Create a serializable dictionary in Unity with all necessary error detections
MIT License
38 stars 3 forks source link

Addressable value bug #3

Closed nicolas-goyon closed 3 months ago

nicolas-goyon commented 3 months ago

Hi there, I've been stuck with an issue where the value of the dictionnary is AssetGUID and not a drop field, I have this issue with AddressablesReferences and AddressablesReferencesT<>.

image

Thanks in advance for the help.

EduardMalkhasyan commented 3 months ago

Hello @nicolas-goyon sorry for having trouble with my plugin. I found the solution but am not sure if you want to use it...

Here is the problem - as you can see AssetReference class is Serializable class but it use [FormerlySerializedAs("m_assetGUID")] attribute because of being non MonoBehaviour inherited class
Screenshot_3

so the only solution I can provide you in this case, is parent your class with other class and it will not understand the first [FormerlySerializedAs("m_assetGUID")] image

Solution here image

EduardMalkhasyan commented 3 months ago

If its ok for @nicolas-goyon you I can close the Issue ?

nicolas-goyon commented 3 months ago

Yes its ok for me, thanks for the solution, i'll take this one it could work.

EduardMalkhasyan commented 3 months ago

Hello @nicolas-goyon new version has the fix - V_2_01 and also it has serialize interface with mono feature

nicolas-goyon commented 3 months ago

Hello @nicolas-goyon new version has the fix - V_2_01 and also it has serialize interface with mono feature

Ohh nice thanks !