mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-07-18 03:24:15 -04:00
Fix \0 chars in TextAssets cutting off preview
This commit is contained in:
@ -926,7 +926,8 @@ namespace AssetStudioGUI
|
||||
private void PreviewTextAsset(TextAsset m_TextAsset)
|
||||
{
|
||||
var text = Encoding.UTF8.GetString(m_TextAsset.m_Script);
|
||||
PreviewText(text.Replace("\n", "\r\n"));
|
||||
text = text.Replace("\n", "\r\n").Replace("\0", "");
|
||||
PreviewText(text);
|
||||
}
|
||||
|
||||
private void PreviewMonoBehaviour(MonoBehaviour m_MonoBehaviour)
|
||||
|
Reference in New Issue
Block a user