protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(container);

            node.Add(LocalRotationName, LocalRotation.ExportYAML(container));
            node.Add(LocalPositionName, LocalPosition.ExportYAML(container));
            node.Add(LocalScaleName, LocalScale.ExportYAML(container));
            node.Add(ChildrenName, Children.ExportYAML(container));
            node.Add(FatherName, Father.ExportYAML(container));
            node.Add(RootOrderName, GetRootOrder(container.Version, container.Flags));
            node.Add(LocalEulerAnglesHintName, GetLocalEulerAnglesHint(container.Version, container.Flags).ExportYAML(container));
            return(node);
        }
Beispiel #2
0
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(container);

            node.Add("m_LocalRotation", LocalRotation.ExportYAML(container));
            node.Add("m_LocalPosition", LocalPosition.ExportYAML(container));
            node.Add("m_LocalScale", LocalScale.ExportYAML(container));
            node.Add("m_Children", Children.ExportYAML(container));
            node.Add("m_Father", Father.ExportYAML(container));
            node.Add("m_RootOrder", GetSiblingIndex());
            node.Add("m_LocalEulerAnglesHint", LocalRotation.ToEuler().ExportYAML(container));
            return(node);
        }
Beispiel #3
0
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
            YAMLMappingNode node   = base.ExportYAMLRoot(container);
            TransformLayout layout = container.Layout.Transform;

            node.Add(layout.LocalRotationName, LocalRotation.ExportYAML(container));
            node.Add(layout.LocalPositionName, LocalPosition.ExportYAML(container));
            node.Add(layout.LocalScaleName, LocalScale.ExportYAML(container));
            node.Add(layout.ChildrenName, Children.ExportYAML(container));
            node.Add(layout.FatherName, Father.ExportYAML(container));
            node.Add(layout.RootOrderName, RootOrder);
            node.Add(layout.LocalEulerAnglesHintName, LocalEulerAnglesHint.ExportYAML(container));
            return(node);
        }