public void OnRepaint(RagePixelState state) { if (!active) { return; } state.DrawSpriteBounds(); Rect r = rect; Utility.DrawRectangle( Utility.PixelToWorld(new IntVector2(r.xMin, r.yMin), state.transform, state.sprite, false), Utility.PixelToWorld(new IntVector2(r.xMax + 1, r.yMax + 1), state.transform, state.sprite, false), Color.white ); }
public void OnRepaint(RagePixelState state) { if (!Active) { return; } state.DrawSpriteBounds(); Rect r = Rect; Utility.DrawRectangle( Utility.PixelToWorld(new Vector2Int((int)r.xMin, (int)r.yMin), state.Transform, state.Sprite, false), Utility.PixelToWorld(new Vector2Int((int)r.xMax + 1, (int)r.yMax + 1), state.Transform, state.Sprite, false), Color.white ); }
public void OnRepaint(RagePixelState state) { state.DrawBasicPaintGizmo(); state.DrawSpriteBounds(); }