Skip to content

[BUG] Unstable serialization sequence during .me model export #571

Description

@PAMEH-2045

What happened?

If avatar depends on other gameobject asset ( model prefab or any asset that counts as GameObject ) and path to this asset sorts before export target __TempExport.prefab,
eg Assets/[ < Assets/_, then BuildAssetBundles() will order it before target prefab in a bundle manifest,
which results in loading of wrong object by

var prefab = bundle.LoadAllAssets<GameObject>().FirstOrDefault();

Steps to Reproduce

  • Import model asset to a directory like Assets/[]/ or name it like !.fbx and place it in Assets: Assets/!.fbx
  • Instantiate model prefab and make changes
  • Export
  • Import to ME and observe that original model prefab is loaded instead

App Version

2.1.4

Store Edition

GitHub Edition

Confirmation

  • I confirm this report includes only one bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions