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); }
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); }
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); }
protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container) { YAMLMappingNode node = base.ExportYAMLRoot(container); node.Add(AnchorMinName, AnchorMin.ExportYAML(container)); node.Add(AnchorMaxName, AnchorMax.ExportYAML(container)); node.Add(AnchoredPositionName, AnchorPosition.ExportYAML(container)); node.Add(SizeDeltaName, SizeDelta.ExportYAML(container)); node.Add(PivotName, Pivot.ExportYAML(container)); return(node); }
protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container) { YAMLMappingNode node = base.ExportYAMLRoot(container); node.Add("m_AnchorMin", AnchorMin.ExportYAML(container)); node.Add("m_AnchorMax", AnchorMax.ExportYAML(container)); node.Add("m_AnchoredPosition", AnchorPosition.ExportYAML(container)); node.Add("m_SizeDelta", SizeDelta.ExportYAML(container)); node.Add("m_Pivot", Pivot.ExportYAML(container)); return(node); }
public YAMLNode ExportYAML(IExportContainer container) { YAMLMappingNode node = new YAMLMappingNode(); node.Add(BorderName, Border.ExportYAML(container)); node.Add(PivotName, Pivot.ExportYAML(container)); node.Add(OldSizeName, OldSize.ExportYAML(container)); node.Add(NewSizeName, NewSize.ExportYAML(container)); node.Add(AdaptiveTilingThresholdName, AdaptiveTilingThreshold); node.Add(DrawModeName, DrawMode); node.Add(AdaptiveTilingName, AdaptiveTiling); return(node); }
public YAMLNode ExportYAML(IExportContainer container) { YAMLMappingNode node = new YAMLMappingNode(); node.Add("border", Border.ExportYAML(container)); node.Add("pivot", Pivot.ExportYAML(container)); node.Add("oldSize", OldSize.ExportYAML(container)); node.Add("newSize", NewSize.ExportYAML(container)); node.Add("adaptiveTilingThreshold", AdaptiveTilingThreshold); node.Add("drawMode", DrawMode); node.Add("adaptiveTiling", AdaptiveTiling); return(node); }
public YAMLNode ExportYAML(IExportContainer container) { YAMLMappingNode node = new YAMLMappingNode(); node.AddSerializedVersion(GetSerializedVersion(container.Version)); node.Add("name", Name); node.Add("rect", Rect.ExportYAML(container)); node.Add("alignment", (int)Alignment); node.Add("pivot", Pivot.ExportYAML(container)); node.Add("border", Border.ExportYAML(container)); node.Add("outline", Outline.ExportYAML(container)); node.Add("physicsShape", PhysicsShape.ExportYAML(container)); node.Add("tessellationDetail", TessellationDetail); return(node); }
public YAMLNode ExportYAML(IExportContainer container) { YAMLMappingNode node = new YAMLMappingNode(); node.AddSerializedVersion(ToSerializedVersion(container.ExportVersion)); node.Add(NameName, Name); node.Add(RectName, Rect.ExportYAML(container)); node.Add(AlignmentName, (int)Alignment); node.Add(PivotName, Pivot.ExportYAML(container)); if (HasBorder(container.ExportVersion)) { node.Add(BorderName, Border.ExportYAML(container)); } if (HasOutline(container.ExportVersion)) { node.Add(OutlineName, Outline.ExportYAML(container)); } if (HasPhysicsShape(container.ExportVersion)) { node.Add(PhysicsShapeName, PhysicsShape.ExportYAML(container)); } if (HasTessellationDetail(container.ExportVersion)) { node.Add(TessellationDetailName, TessellationDetail); } if (HasBones(container.ExportVersion)) { node.Add(BonesName, Bones.ExportYAML(container)); node.Add(SpriteIDName, SpriteID); } if (HasInternalID(container.ExportVersion)) { node.Add(InternalIDName, InternalID); } if (HasBones(container.ExportVersion)) { node.Add(VerticesName, Vertices.ExportYAML(container)); node.Add(IndicesName, Indices.ExportYAML(true)); node.Add(EdgesName, Edges.ExportYAML(container)); node.Add(WeightsName, Weights.ExportYAML(container)); } return(node); }