ResizableΒΆ

Allow to resize gameobject.

Options

  • Update RectTransform: change RectTransform size.
  • Update LayoutElement: change LayoutElement size.
  • Active Region: distance from border where resize allowed.
  • Min Size: minimal size.
  • Max Size: maximum size, not applied if size is zero.
  • Keep Aspect Ratio: Aspect ratio applied after MinSize and MaxSize, so if default aspect ratio not equal MinSize and MaxSize aspect ratio then real size may be outside limit with one of the axis.
  • Resize Directions: allowed resize directions.

Events

  • OnStartResize(Resizable)
  • OnEndResize(Resizable)