void OnSceneGUI() { Undo.RecordObject(linearLine, "LinarLine"); for (int i = 0; i < pointListsProperties.PointListProperties.Length; i++) { if ( pointListsProperties.PointListProperties[i].ShowHandles && pointListsProperties.PointListProperties[i].GeneratorData.Generator == Adrenak.Shiain.UIShapesKit.PointsList.PointListGeneratorData.Generators.Custom ) { if (PointListDrawer.Draw( ref pointListsProperties.PointListProperties[i].Positions, rectTransform, linearLine.LineProperties.Closed, 2 )) { linearLine.ForceMeshUpdate(); } } } // if (!Application.isPlaying && linearLine.enabled) // { // linearLine.enabled = false; // linearLine.enabled = true; // } }
void OnSceneGUI() { Undo.RecordObject(polygon, "test"); for (int i = 0; i < pointListsProperties.PointListProperties.Length; i++) { if ( pointListsProperties.PointListProperties[i].ShowHandles && pointListsProperties.PointListProperties[i].GeneratorData.Generator == ThisOtherThing.UI.ShapeUtils.PointsList.PointListGeneratorData.Generators.Custom ) { if (PointListDrawer.Draw( ref pointListsProperties.PointListProperties[i].Positions, rectTransform, true, 3 )) { polygon.ForceMeshUpdate(); } } } // if (!Application.isPlaying && polygon.enabled) // { // polygon.enabled = false; // polygon.enabled = true; // } }