Hide
SphereHandleCap

Draw a sphere in the scene like Unity's SphereHandleCap.

Parameters:

  • float radius = 1f: radius of the sphere. If the target field is a number, use the field's value instead
  • string radiusCallback = null: use a callback or a field value as the radius
  • string space = "this": the containing space of the sphere. "this" means using the current target, null means using the world space, otherwise means using a callback or a field value
  • float posXOffset = 0f, float posYOffset = 0f, float posZOffset = 0f: Vector3 position offset for the sphere related to the space
  • string posOffsetCallback = null: use a callback or a field value as the position offset. The value must be a Vector3
  • EColor eColor = EColor.White: color
  • float alpha = 1f: the alpha of the color. Not works with color.
  • string color = null: the color of the line. If it starts with #, use html hex color, otherwise use as a callback. This overrides the eColor.
[DrawLine] // also draw the lines [SphereHandleCap(color: "#FF000099", radius: 0.1f)] public Vector3[] localPos; [SphereHandleCap(radius: 0.1f)] public GameObject[] objPos; // use obj's position

image