Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Unity Project produces unuseable assetbundles #3

Closed
eeveeishpowered opened this issue May 16, 2021 · 2 comments
Closed

[BUG] Unity Project produces unuseable assetbundles #3

eeveeishpowered opened this issue May 16, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@eeveeishpowered
Copy link

eeveeishpowered commented May 16, 2021

Describe the bug
All of the font assetbundles I've tried to produce just end up with the CustomMenuText plugin not loading, or the game crashing on boot-up if the filesize is large.

To Reproduce
Steps to reproduce the behavior:

  1. Open the Unity Project, import fonts that you want to build
  2. Right click the font and create a Text Asset using the font
  3. Click on the Text Asset, click on Update atlas texture, set character set to ASCII, then generate Font Atlass, then give it a label under AssetBundle, then right click the Text Asset and click Build AssetBundle
  4. Copy over the generated AssetBundle to the Fonts folder in UserData, then open the game to see that the CustomMenuText plugin failed to load/game hangs with a white screen on startup.

Expected behavior
The font would load correctly and would be choosable in the CustomMenuText settings

Screenshots
image
The place where I gave the Text Asset a label.

Desktop (please complete the following information):

  • OS: Windows 10 Pro version 2004
  • Browser: Google Chrome
  • Version: Plugin Version is v3.3.0, Unity Version is 2018.4.35f1

Additional context
My broken generated asset font has a weirdly small filesize compared to (for example) the Comic Sans font that the creator posted in #other-files in BSMG.
My file size: 77KB
Their file size: 2.17MB

@eeveeishpowered eeveeishpowered added the bug Something isn't working label May 16, 2021
@headassbtw
Copy link
Owner

not sure if this will help, but it's on me that i didn't elaborate the workflow that worked for me:

import ttf,
create font material with the TMPro window
open the pre-exsting text prefab,
change the font within the prefab
export the assetbundle using the menu in the assets tab

i plan to make a better version of the unity project, once i get around to it

@headassbtw headassbtw pinned this issue May 18, 2021
@headassbtw
Copy link
Owner

headassbtw commented May 18, 2021

I've updated the unity project to be massively simpler, and almost one-click, Here's the download

the menu is at the top, under "CustomMenuText/Font Converter"

@headassbtw headassbtw unpinned this issue May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants