Esempio n. 1
0
 /// <summary>
 /// This Method is called when occurs an event in the unity scene
 /// </summary>
 private void OnSceneGUI()
 {
     if (currentSceneview != null)
     {
         objectSelected = ElementSelector.GetSelectedObject();
         if (objectSelected != null)
         {
             Debug.Log(objectSelected.name);
         }
         else
         {
             Debug.Log("No Selected Object");
         }
     }
     else
     {
         objectSelected = null;
     }
 }