public AnimationClipLayout(LayoutInfo info) { FloatCurve = new FloatCurveLayout(info); PPtrCurve = new PPtrCurveLayout(info); QuaternionCurve = new QuaternionCurveLayout(info); Vector3Curve = new Vector3CurveLayout(info); }
public YAMLNode ExportYAML(IExportContainer container) { YAMLMappingNode node = new YAMLMappingNode(); QuaternionCurveLayout layout = container.ExportLayout.AnimationClip.QuaternionCurve; node.Add(layout.CurveName, Curve.ExportYAML(container)); node.Add(layout.PathName, Path); return(node); }
private static void GenerateEngineCurve(TypeTreeContext context, SerializableType origin, string name) { switch (origin.Name) { case SerializableType.FloatCurveName: FloatCurveLayout.GenerateTypeTree(context, name); break; case SerializableType.Vector3CurveName: Vector3CurveLayout.GenerateTypeTree(context, name); break; case SerializableType.QuaternionCurveName: QuaternionCurveLayout.GenerateTypeTree(context, name); break; case SerializableType.PPtrCurveName: PPtrCurveLayout.GenerateTypeTree(context, name); break; default: throw new Exception($"Unknown engine curve {origin.Name}"); } }