public override void OnInspectorGUI() { base.OnInspectorGUI(); if (GUI.changed) { Ferr2D_Sprite sprite = (Ferr2D_Sprite)target; sprite.Rebuild(); } }
void OnSceneGUI() { Ferr2D_Sprite sprite = (Ferr2D_Sprite)target; //sprite.meshScale.x = Handles.FreeMoveHandle(new Vector3(sprite.Width, 0, 0), Quaternion.identity,1,Vector3.zero, Handles.RectangleCap).x; if (GUI.changed) { sprite.Rebuild(); } }