part of the script is
DrawDefaultInspector();
EditorGUIUtility.LookLikeInspector();
EditorGUIUtility.LookLikeControls();
GUILayout.BeginHorizontal();
if (GUILayout.Button("+", GUILayout.Width(30) ))
{
GameObject clone = new GameObject();
int number = m_collider.GetNumberOf();
clone.name = "waypoint :" + number;
m_collider.Add(clone);
}
i want it to highlight or select it in the inspector so i can move it straight away.
and is the a way to do new GameObject(); at the place it would be if you draged it onto the scene its self , so that it will have a position x,y,z ?