RadiusHandleadjust a radius in scene. Support setting parent, offset, and colors.
The target filed must be number types, like int, float, double, long, short, etc.
Parameters
string space = "this": parent of the radius. When usingthis, use the current object as target space. When usingnull, 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 axisfloat posYOffset = 0f: local position offset at the y axisfloat posZOffset = 0f: local position offset at the z axisstring posOffsetCallback = null: use a field/callback as the local position offset. Must return a Vector3.EColor eColor = EColor.White: color of the handlefloat alpha = 1f: color's alpha of the handlestring 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.
[RadiusHandle] public float floatRadius; [Space] public GameObject scaleTarget; public Vector3 positionOffset; [RadiusHandle( space: nameof(scaleTarget), // parent space posOffsetCallback: nameof(positionOffset), // can be field/property/callback for local position offset eColor: EColor.Blue)] public double doubleRadius;