コード例 #1
0
        public PrefabToCategoryDropSettingsView(PrefabsToCategoryDropSettings settings)
        {
            _settings = settings;

            ToggleVisibilityBeforeRender = true;
            VisibilityToggleLabel        = "Prefabs Drop Settings";
            SurroundWithBox = true;

            _tagSelectionForDroppedPrefabs.VisibilityToggleLabel        = "Tags For Dropped Prefabs";
            _tagSelectionForDroppedPrefabs.ToggleVisibilityBeforeRender = true;
        }
コード例 #2
0
        private void AssociateDroppedPrefabsWithTags()
        {
            PrefabsToCategoryDropSettings prefabsDropSettings = PrefabsToCategoryDropEventHandler.Get().PrefabsDropSettings;

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