コード例 #1
0
 /// <summary>
 /// Starts editing a given editor scene
 /// </summary>
 /// <param name="scene">Scene to edit</param>
 public void OpenScene( Scene scene )
 {
     if ( ( m_CurrentSceneEditState != null ) && ( SceneClosed != null ) )
     {
         SceneClosed( m_CurrentSceneEditState );
     }
     m_CurrentSceneEditState = new SceneEditState( scene );
     if ( SceneOpened != null )
     {
         SceneOpened( m_CurrentSceneEditState );
     }
 }
コード例 #2
0
 /// <summary>
 /// Called when a new scene is opened
 /// </summary>
 /// <param name="state">Opened scene's edit state</param>
 private void OnSceneOpened( SceneEditState state )
 {
     state.SelectedObjects.ObjectSelected += SelectionChanged;
     state.SelectedObjects.ObjectSelected += SelectionChanged;
 }