Trying to understand editor scripts

Im trying to get a label to pop up over every child in any gameobject with the ‘drawlinetryout’ script on it- so what am I doing wrong? the waypoints var is a transform in the drawlinetryout script. It keeps throwing me error messages.

 @CustomEditor (drawlinetryout)    
 class LabelHandle extends Editor {       
  function OnSceneGUI () {            
     Handles.color =; 
	//for (var child : Transform in transform) {  

var script = new SerializedObject(target);

 var waypoints:Transform [] = script.FindProperty("waypoints");

for ( i = 0; i < waypoints.Length; i++)

	//Handles.Label(target.transform.position + target.transform.up *.5,;             
Handles.Label(waypoints<em>.position + waypoints_.up *.5, waypoints*.name.ToString());*_</em> 


I’m on my tablet so I can’t write a full sample, but this should get you on the right track:

The SerializedProperty can’t be casted into an array. You have to use the functions it provides, especially: