예제 #1
0
        public YAMLNode ExportYAML(IExportContainer container)
        {
#warning TODO: values acording to read version (current 2017.3.0f3)
            YAMLMappingNode node = new YAMLMappingNode();
            node.AddSerializedVersion(GetSerializedVersion(container.Version));
            node.Add("m_RootX", RootX.ExportYAML(container));
            node.Add("m_Skeleton", Skeleton.ExportYAML(container));
            node.Add("m_SkeletonPose", SkeletonPose.ExportYAML(container));
            node.Add("m_LeftHand", LeftHand.ExportYAML(container));
            node.Add("m_RightHand", RightHand.ExportYAML(container));
            node.Add("m_Handles", Handles.ExportYAML(container));
            node.Add("m_ColliderArray", ColliderArray.ExportYAML(container));
            node.Add("m_HumanBoneIndex", HumanBoneIndex.ExportYAML(true));
            node.Add("m_HumanBoneMass", HumanBoneMass.ExportYAML());
            node.Add("m_ColliderIndex", ColliderIndex.ExportYAML(true));
            node.Add("m_Scale", Scale);
            node.Add("m_ArmTwist", ArmTwist);
            node.Add("m_ForeArmTwist", ForeArmTwist);
            node.Add("m_UpperLegTwist", UpperLegTwist);
            node.Add("m_LegTwist", LegTwist);
            node.Add("m_ArmStretch", ArmStretch);
            node.Add("m_LegStretch", LegStretch);
            node.Add("m_FeetSpacing", FeetSpacing);
            node.Add("m_HasLeftHand", HasLeftHand);
            node.Add("m_HasRightHand", HasRightHand);
            node.Add("m_HasTDoF", HasTDoF);
            return(node);
        }
예제 #2
0
        public YAMLNode ExportYAML()
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.AddSerializedVersion(SerializedVersion);
            node.Add("m_RootX", RootX.ExportYAML());
            node.Add("m_Skeleton", Skeleton.ExportYAML());
            node.Add("m_SkeletonPose", SkeletonPose.ExportYAML());
            node.Add("m_LeftHand", LeftHand.ExportYAML());
            node.Add("m_RightHand", RightHand.ExportYAML());
            node.Add("m_Handles", Handles.ExportYAML());
            node.Add("m_ColliderArray", ColliderArray.ExportYAML());
            node.Add("m_HumanBoneIndex", HumanBoneIndex.ExportYAML(true));
            node.Add("m_HumanBoneMass", HumanBoneMass.ExportYAML());
            node.Add("m_ColliderIndex", ColliderIndex.ExportYAML(true));
            node.Add("m_Scale", Scale);
            node.Add("m_ArmTwist", ArmTwist);
            node.Add("m_ForeArmTwist", ForeArmTwist);
            node.Add("m_UpperLegTwist", UpperLegTwist);
            node.Add("m_LegTwist", LegTwist);
            node.Add("m_ArmStretch", ArmStretch);
            node.Add("m_LegStretch", LegStretch);
            node.Add("m_FeetSpacing", FeetSpacing);
            node.Add("m_HasLeftHand", HasLeftHand);
            node.Add("m_HasRightHand", HasRightHand);
            node.Add("m_HasTDoF", HasTDoF);
            return(node);
        }