private void ChangeSize(int width, int height) { TriGrid rectGrid = (TriGrid)target; rectGrid.SetSize(width, height); EditorUtility.SetDirty(target); image.Draw(rectGrid); }