protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
#warning TODO: values acording to read version (current 2017.3.0f3)
            YAMLMappingNode node = base.ExportYAMLRoot(container);
            node.InsertSerializedVersion(GetSerializedVersion(container.Version));
            node.Add("m_RenderMode", (short)RenderMode);
            node.Add("m_SortMode", (short)SortMode);
            node.Add("m_MinParticleSize", MinParticleSize);
            node.Add("m_MaxParticleSize", MaxParticleSize);
            node.Add("m_CameraVelocityScale", CameraVelocityScale);
            node.Add("m_VelocityScale", VelocityScale);
            node.Add("m_LengthScale", LengthScale);
            node.Add("m_SortingFudge", SortingFudge);
            node.Add("m_NormalDirection", GetNormalDirection(container.Version));
            node.Add("m_RenderAlignment", (int)RenderAlignment);
            node.Add("m_Pivot", Pivot.ExportYAML(container));
            node.Add("m_UseCustomVertexStreams", UseCustomVertexStreams);
            node.Add("m_VertexStreams", GetVertexStreams(container.Version).ExportYAML());
            node.Add("m_Mesh", Mesh.ExportYAML(container));
            node.Add("m_Mesh1", Mesh1.ExportYAML(container));
            node.Add("m_Mesh2", Mesh2.ExportYAML(container));
            node.Add("m_Mesh3", Mesh3.ExportYAML(container));
            node.Add("m_MaskInteraction", (int)MaskInteraction);
            return(node);
        }
Пример #2
0
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(container);

            node.InsertSerializedVersion(GetSerializedVersion(container.ExportVersion));
            node.Add(RenderModeName, (short)RenderMode);
            node.Add(SortModeName, (short)SortMode);
            node.Add(MinParticleSizeName, MinParticleSize);
            node.Add(MaxParticleSizeName, MaxParticleSize);
            node.Add(CameraVelocityScaleName, CameraVelocityScale);
            node.Add(VelocityScaleName, VelocityScale);
            node.Add(LengthScaleName, LengthScale);
            node.Add(SortingFudgeName, SortingFudge);
            node.Add(NormalDirectionName, GetNormalDirection(container.Version));
            node.Add(RenderAlignmentName, (int)RenderAlignment);
            node.Add(PivotName, Pivot.ExportYAML(container));
            node.Add(UseCustomVertexStreamsName, UseCustomVertexStreams);
            node.Add(VertexStreamsName, GetVertexStreams(container.Version).ExportYAML());
            node.Add(MeshName, Mesh.ExportYAML(container));
            node.Add(Mesh1Name, Mesh1.ExportYAML(container));
            node.Add(Mesh2Name, Mesh2.ExportYAML(container));
            node.Add(Mesh3Name, Mesh3.ExportYAML(container));
            node.Add(MaskInteractionName, (int)MaskInteraction);
            return(node);
        }
Пример #3
0
        protected override YAMLMappingNode ExportYAMLRoot(IAssetsExporter exporter)
        {
#warning TODO: values acording to read version (current 2017.3.0f3)
            YAMLMappingNode node = base.ExportYAMLRoot(exporter);
            node.InsertSerializedVersion(GetSerializedVersion(exporter.Version));
            node.Add("m_RenderMode", RenderMode);
            node.Add("m_SortMode", SortMode);
            node.Add("m_MinParticleSize", MinParticleSize);
            node.Add("m_MaxParticleSize", MaxParticleSize);
            node.Add("m_CameraVelocityScale", CameraVelocityScale);
            node.Add("m_VelocityScale", VelocityScale);
            node.Add("m_LengthScale", LengthScale);
            node.Add("m_SortingFudge", SortingFudge);
            node.Add("m_NormalDirection", NormalDirection);
            node.Add("m_RenderAlignment", RenderAlignment);
            node.Add("m_Pivot", Pivot.ExportYAML(exporter));
            node.Add("m_UseCustomVertexStreams", UseCustomVertexStreams);
            node.Add("m_VertexStreams", IsReadVertexStreams(exporter.Version) ? VertexStreams.ExportYAML() : YAMLScalarNode.Empty);
            node.Add("m_Mesh", Mesh.ExportYAML(exporter));
            node.Add("m_Mesh1", Mesh1.ExportYAML(exporter));
            node.Add("m_Mesh2", Mesh2.ExportYAML(exporter));
            node.Add("m_Mesh3", Mesh3.ExportYAML(exporter));
            node.Add("m_MaskInteraction", MaskInteraction);
            return(node);
        }