Hide
PrimitiveBoundsHandle

Draw a rect handle (for Rect, RectInt) or bounds handle (for Bounds, BoundsInt) to adjust corresponding values of the field.

Parameters:

  • string space = "this": parent of the rect/bounds. When using this, use the current object as target space. When using null, use world space and no rotation at all. Otherwise, use the target field/callback as the parent.
  • float posXOffset = 0f: local position offset at the x axis
  • float posYOffset = 0f: local position offset at the y axis
  • float posZOffset = 0f: local position offset at the z axis
  • string posOffsetCallback = null: use a field/callback as the local position offset. Must return a Vector3.
  • EColor eColor = EColor.White: color of the handle
  • float alpha = 1f: color's alpha of the handle
  • string color = null: use a color for the handle. If starts with #, a hex color is used. Otherwise, use the target field/callback which the value/return-value must be a Color.
using SaintsField; [PrimitiveBoundsHandle] public Rect rect; [PrimitiveBoundsHandle(eColor: EColor.Aqua)] public RectInt rectInt;

using SaintsField; [PrimitiveBoundsHandle] public Bounds bounds; [PrimitiveBoundsHandle(eColor: EColor.Aqua)] public BoundsInt boundsInt;