Skip to content

Mark destination TMP font dirty after Convert - #2

Open
CS-LX wants to merge 1 commit into
napbla:masterfrom
CS-LX:fix/mark-font-asset-dirty
Open

Mark destination TMP font dirty after Convert#2
CS-LX wants to merge 1 commit into
napbla:masterfrom
CS-LX:fix/mark-font-asset-dirty

Conversation

@CS-LX

@CS-LX CS-LX commented Jul 28, 2026

Copy link
Copy Markdown

Summary

  • Call EditorUtility.SetDirty on the destination TMP_FontAsset after Convert so Unity persists the patched glyph/face/atlas changes.
  • Fixes The change will not be saved #1

Test plan

  • Open Window > Bitmap Font Converter
  • Convert a bitmap font into a TMP font asset
  • Confirm the destination asset becomes dirty / can be saved
  • Reopen the project and verify glyph/atlas changes remain

Without SetDirty, Convert updates stay in memory and are lost when the project is reopened.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

The change will not be saved

1 participant