mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-05-25 05:40:21 -04:00
Fix \0 chars in TextAssets cutting off preview
This commit is contained in:
parent
3e77c34bd5
commit
f644396a15
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user