10 const int MaxPoints = 2048;
12 [Header (
"Ellipse Settings")]
13 public int Resolution = 36;
14 public Vector2 Radius =
new Vector2(1f, 1f);
16 public override int NumPoints
20 Resolution = Mathf.Clamp(Resolution, 0, MaxPoints);
32 float angle = ((float)pointIndex / Resolution) * 2f * Mathf.PI;
47 Vector3 last = GetUnclampedPoint(0f);
48 for (
int i = 1; i < 10; i++)
50 Vector3 current = GetUnclampedPoint((
float)i / 10);
51 distance += Vector3.Distance(last, current);
58 public class CustomEditor : LineBaseEditor { }