Skip to content

Fix: use LoadAsset by name instead of FirstOrDefault to avoid asset ordering issues - #592

Open
Renyingying11 wants to merge 1 commit into
shinyflvre:mainfrom
Renyingying11:main
Open

Renyingying11 wants to merge 1 commit into
shinyflvre:mainfrom
Renyingying11:main

Conversation

@Renyingying11

Copy link
Copy Markdown

Fixes #571

When BuildAssetBundles() is called, assets are ordered alphabetically.
If a dependency asset path sorts before __TempExport.prefab (e.g. Assets/[model]/),
FirstOrDefault() returns the wrong object.

Fix: use LoadAsset("__TempExport") to load by name directly,
regardless of bundle ordering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Unstable serialization sequence during .me model export

1 participant