public static void CurveGeneratorEditor (MatrixGenerators.UnityCurve200 gen) { using (Cell.LinePx(GeneratorDraw.nodeWidth+4)) //don't really know why 4 using (Cell.Padded(5)) { Draw.AnimationCurve(gen.curve); if (Cell.current.valChanged) GraphWindow.RefreshMapMagic(gen); } }