コード例 #1
0
        protected override void RenderContent()
        {
            _scrollViewPosition = EditorGUILayout.BeginScrollView(_scrollViewPosition);
            PrefabsToCategoryDropEventHandler dropEventHandler = PrefabsToCategoryDropEventHandler.Get();

            dropEventHandler.PrefabsDropSettings.View.Render();
            dropEventHandler.PrefabFoldersDropSettings.View.Render();
            EditorGUILayout.EndScrollView();
        }
コード例 #2
0
 public PrefabFoldersToCategoryDropOperation(PrefabFoldersToCategoryDropData dropData)
 {
     _dropData = dropData;
     _prefabFoldersDropSettings = PrefabsToCategoryDropEventHandler.Get().PrefabFoldersDropSettings;
 }
 private void HandleDragAndDropEvent(Rect dropRectangle)
 {
     PrefabsToCategoryDropEventHandler.Get().Handle(Event.current, dropRectangle);
 }
コード例 #4
0
        private void AssociateDroppedPrefabsWithTags()
        {
            PrefabsToCategoryDropSettings prefabsDropSettings = PrefabsToCategoryDropEventHandler.Get().PrefabsDropSettings;

            PrefabActions.AssociatePrefabsWithTagCollection(_validDroppedPrefabs, prefabsDropSettings.TagNamesForDroppedPrefabs);
        }