Update README.md

Updated project
Support 2017.4
This commit is contained in:
Perfare
2018-03-25 13:53:52 +08:00
parent a062905734
commit f87390cc2b
104 changed files with 179 additions and 179 deletions

View File

@@ -0,0 +1,36 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace UnityStudio
{
class MovieTexture
{
public string m_Name;
public byte[] m_MovieData;
public MovieTexture(AssetPreloadData preloadData, bool readSwitch)
{
var sourceFile = preloadData.sourceFile;
var reader = preloadData.Reader;
m_Name = reader.ReadAlignedString(reader.ReadInt32());
if (readSwitch)
{
var m_Loop = reader.ReadBoolean();
reader.AlignStream(4);
//PPtr<AudioClip>
sourceFile.ReadPPtr();
var size = reader.ReadInt32();
m_MovieData = reader.ReadBytes(size);
var m_ColorSpace = reader.ReadInt32();
}
else
{
preloadData.extension = ".ogv";
preloadData.Text = m_Name;
}
}
}
}