- Home /
 
 
               Question by 
               ninjaboynaru · Oct 19, 2013 at 05:01 PM · 
                editorwaypointscene view  
              
 
              Check if 2 objects are selected in Scene View
I am working on AI Way point system and I need to be able to check if I have selected 2 way points(gameObjects) in the editor/scene view, then return those 2 objects and do stuff with them.
Thanks
               Comment
              
 
               
              Answer by robertbu · Oct 19, 2013 at 06:31 PM
I'm not real experienced with editor scripts, but I believe 'Selection.transforms' will give you want you want. Just check that the array has two items.
Your answer