예제 #1
0
        private Vector3f GetLocalEulerAnglesHint(Version version, TransferInstructionFlags flags)
        {
#if UNIVERSAL
            if (HasLocalEulerAnglesHint(version, flags))
            {
                return(LocalEulerAnglesHint);
            }
#endif
            return(LocalRotation.ToEuler());
        }
예제 #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);
        }
예제 #3
0
        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, GetSiblingIndex());
            node.Add(LocalEulerAnglesHintName, LocalRotation.ToEuler().ExportYAML(container));
            return(node);
        }