示例#1
0
        public ParticleRenderer(AssetCabinet file) :
            this(file, 0, UnityClassID.ParticleRenderer, UnityClassID.ParticleRenderer)
        {
            file.ReplaceSubfile(-1, this, null);

            base.SetDefaults();
            UV_Animation = new UVAnimation();
        }
示例#2
0
        public new void LoadFrom(Stream stream)
        {
            base.LoadFrom(stream);

            BinaryReader reader = new BinaryReader(stream);
            m_CameraVelocityScale = reader.ReadSingle();
            m_StretchParticles = reader.ReadInt32();
            m_LengthScale = reader.ReadSingle();
            m_VelocityScale = reader.ReadSingle();
            m_MaxParticleSize = reader.ReadSingle();
            UV_Animation = new UVAnimation(stream);
        }
        public new void LoadFrom(Stream stream)
        {
            base.LoadFrom(stream);

            BinaryReader reader = new BinaryReader(stream);

            m_CameraVelocityScale = reader.ReadSingle();
            m_StretchParticles    = reader.ReadInt32();
            m_LengthScale         = reader.ReadSingle();
            m_VelocityScale       = reader.ReadSingle();
            m_MaxParticleSize     = reader.ReadSingle();
            UV_Animation          = new UVAnimation(stream);
        }