Implemented BlendShape export

This commit is contained in:
Perfare
2019-07-28 16:41:23 +08:00
parent b1ea8dd346
commit 0b462754a5
4 changed files with 138 additions and 8 deletions

View File

@ -292,7 +292,7 @@ namespace AssetStudio
public AnimationCurve<float> curve;
public string attribute;
public string path;
public int classID;
public ClassIDType classID;
public PPtr<MonoScript> script;
@ -301,7 +301,7 @@ namespace AssetStudio
curve = new AnimationCurve<float>(reader, reader.ReadSingle);
attribute = reader.ReadAlignedString();
path = reader.ReadAlignedString();
classID = reader.ReadInt32();
classID = (ClassIDType)reader.ReadInt32();
script = new PPtr<MonoScript>(reader);
}
}

View File

@ -227,6 +227,7 @@ namespace AssetStudio
public List<ImportedKeyframe<Vector3>> Scalings = new List<ImportedKeyframe<Vector3>>();
public List<ImportedKeyframe<Vector3>> Rotations = new List<ImportedKeyframe<Vector3>>();
public List<ImportedKeyframe<Vector3>> Translations = new List<ImportedKeyframe<Vector3>>();
public ImportedBlendShape BlendShape;
}
public class ImportedKeyframe<T>
@ -243,6 +244,12 @@ namespace AssetStudio
}
}
public class ImportedBlendShape
{
public string ChannelName;
public List<ImportedKeyframe<float>> Keyframes = new List<ImportedKeyframe<float>>();
}
public class ImportedMorph
{
public string Path { get; set; }