OnDrawGizmos - Документация в помощь
using UnityEngine;
using System.Collections;
public class ExampleClass : MonoBehaviour
{
public Vector3[] Points;
[SerializedField] private float _sphereRadius = 1;
[SerializedField] private float _sphereColor = new Color32(0, 150, 255, 255);
// Methods
private void OnDrawGizmos()
{
Gizmos.color = _sphereColor;
for(int i = 0; i < Points.Length; i++)
{
// Draw a yellow sphere at the transform's position.
Gizmos.DrawSphere(Points[i], _sphereRadius);
Handles.Label(Points[i], $"Point {i}");
}
}
}