(UnityObject): added Type property.

This commit is contained in:
morkt
2018-10-04 07:54:36 +04:00
parent f376104f47
commit 1c049dc6ca
4 changed files with 37 additions and 32 deletions

View File

@@ -61,11 +61,9 @@ namespace GameRes.Formats.Unity
case 28: // Texture2D
{
var tex = new Texture2D();
tex.Load (input);
tex.Load (input, asset.Tree.Version);
if (0 == tex.m_DataLength)
{
if (asset.Tree.Version.StartsWith ("2017.")) // "2017.2.0f3" || "2017.1.1p1"
input.ReadInt64();
var stream_data = new StreamingInfo();
stream_data.Load (input);
if (!string.IsNullOrEmpty (stream_data.Path))