diff --git a/ArcFormats/Unity/ArcUnityFS.cs b/ArcFormats/Unity/ArcUnityFS.cs index 8803d107..8b4c6bed 100644 --- a/ArcFormats/Unity/ArcUnityFS.cs +++ b/ArcFormats/Unity/ArcUnityFS.cs @@ -323,6 +323,8 @@ namespace GameRes.Formats.Unity return ReadTextAsset (file, obj); else if ("Texture2D" == type) type = "image"; + else if ("AssetBundle" == type) + return null; return new AssetEntry { Type = type, diff --git a/ArcFormats/Unity/Texture2D.cs b/ArcFormats/Unity/Texture2D.cs index 35f5f755..ba81ebe9 100644 --- a/ArcFormats/Unity/Texture2D.cs +++ b/ArcFormats/Unity/Texture2D.cs @@ -214,7 +214,8 @@ namespace GameRes.Formats.Unity ImageData Unpack () { - m_texture.LoadData (m_reader); + if (null == m_texture.m_Data || 0 == m_texture.m_Data.Length) + m_texture.LoadData (m_reader); byte[] pixels; switch (m_texture.m_TextureFormat) {