Beispiel #1
0
        private void DrawIenum(SceneEntityDrawer drawer, IEnumerator <ISceneEntity> ienum)
        {
            while (ienum.MoveNext())
            {
                var entity = ienum.Current;
                // Apply Search
                if (!PassFilter(entity))
                {
                    continue;
                }

                EditorGUILayout.BeginHorizontal();
                {
                    drawer.DrawEntity(entity);
                    _database.UpdateEntity(entity);
                }
                EditorGUILayout.EndHorizontal();

                if (!drawer.AreDetailsOpen(entity))
                {
                    continue;
                }
                EditorGUILayout.BeginHorizontal();
                {
                    GUILayout.Space(22);
                    EditorGUILayout.BeginVertical();
                    {
                        _screenshotDrawer.DrawSnapshot(entity);
                        EditorGUILayout.Space();
                    }
                    EditorGUILayout.EndVertical();
                }
                EditorGUILayout.EndHorizontal();
            }
        }
		private void Content()
		{
			var currentScene = _database.CurrentActive;
			_drawer.DrawDetailEntity (currentScene);
			_screenshotDrawer.DrawSnapshot (currentScene);
			_database.UpdateEntity (currentScene);
		}