Тёмный

Creating Search Windows in the Unity Editor 

Game Dev Guide
Подписаться 114 тыс.
Просмотров 25 тыс.
50% 1

Long dropdown lists in the Unity Editor are painful. Let's improve them, by converting them to Searchable Windows instead! 🔎
--------------------------------------------------------------------------------
Want to support the channel?
▶️ Help fund new episodes by joining the Patreon - / gamedevguide
Use these links to grab some cool assets from the asset store:
Get the Must Have Assets! - assetstore.uni...
Free Unity Assets! - assetstore.uni...
New on the Asset Store! - assetstore.uni...
Top Paid Asset Store Packages - assetstore.uni...
Asset Store Partners - assetstore.uni...
--------------------------------------------------------------------------------
Socials and Other Stuff:
• Subscribe - www.youtube.co...
• Join the Discord - / discord
• Twitter - / gamedevguideyt
• Facebook - / gamedevguideyt
• Instagram - / gamedevguideyt

Опубликовано:

 

8 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 42   
@GameDevGuide
@GameDevGuide 2 года назад
👚 🛒Get 15% off all orders over $35 on the merch store until March 1st 2022 - www.gamedevguide.store
@getemratan6516
@getemratan6516 2 года назад
Can we add Custom Script Templates to Add Component context menu just like New Script option over there? Would be more convenient instead of right clicking in the project window and creating the custom script
@yaboiskner
@yaboiskner Год назад
To get the type of the Attribute you're using, the PropertyDrawer already has a field called 'attribute', which means you can access the instance of the custom PropertyAttribute class which can then be used to get the type.
@decelerisgames8276
@decelerisgames8276 2 года назад
Since I'm using Odin Inspector, I haven't once had to ask myself the question on how to improve the inspector. I mean, if the unity dev team try to make a big game with their software, they're gonna probably end up using it. Seriously, this is a life saver. Until you are working on a complexe plugin like the new Input System or Doozy UI editor windows, you can all the basic stuff easily
@TheOrment
@TheOrment 2 года назад
great vid! in newer versions of unity (2021+) you can use the "quick search" window as the asset browser for Unity.Object types too, it has its pros and cons but I believe it's worth mentioning
@MalbersAnimations
@MalbersAnimations 2 года назад
And just like that!, I have turned on the little bell on this channel "🔔" Thank you, from the bottom of my heart! 🙏
@Andrew90046zero
@Andrew90046zero 2 года назад
*Unity Creates Something Useful*: "Welp, this is only for us, so let's keep it secret and hide it in an experiemental namespace"
@_g_r_m_
@_g_r_m_ 2 года назад
This man is covering the indie features before they turn mainstream
@Andrew90046zero
@Andrew90046zero 2 года назад
I'm not really in the need of a "mini search dropdown" at the moment, but I'm still glad I found this video! I've been looking for a video showing different ways to use Unity's newer Search system; the one that has it's own special window. There are barely any resources I can find on syntax for things doing various things. There is some info in the unity docs, but not many examples.
@fluffygamedev
@fluffygamedev 2 года назад
This is awesome! 😮 I've been wanting Search Windows for a long time. Turns out they were just hidden in an obscure place.
@dpeter99
@dpeter99 2 года назад
I'm quite confised by the fact that Unity seams to try to write new stuff with UiToolkit. But there aren't any tutorials for unig it in the editor for more adavanced stuff, and the docs are lacking. I'm looking forward to more editor tooling stuff, especially the graph as it is a topic that doesn't have that many tutorials.
@AxWarhawk
@AxWarhawk 2 года назад
I once asked an experienced gamedev who uses Unity on a daily basis where the document for the editor UI stuff is. Her answer was that there pretty much isn't any documentation and that you just use the (decompiled) source code to figure things out. Looking at her perplexed I asked: okay then, but this probably isn't stable. How often does the Unity (editor) plugin break? 'Every other release', she confessed.
@Edvinas01
@Edvinas01 2 года назад
Right on time! Exactly what I needed for my custom library. Thank you for sharing this.
@RichardTongeman
@RichardTongeman Год назад
Mesh graph looks awesome!
@bensulzinsky4225
@bensulzinsky4225 2 года назад
This is phenomenal. I'm going to integrate that SO searcher into a project of mine right away. One thing I don't understand -- why go with the GetPropertyAttribute extension method over the "attribute" property of the PropertyDrawer class? As in: ( attribute as SearchObjectAttribute ).searchObjectType; I can definitely see the utility of the extension method for retrieving attributes of other types -- just wondering if there's something else that I'm missing. Thanks again for this terrific video.
@GameDevGuide
@GameDevGuide 2 года назад
I straight up just didn't know you could do that, so thanks. 😂🙈 At least you have a useful extension method for elsewhere!
@mrx10001
@mrx10001 2 года назад
wish you posted the code in a downloadable unity package or something, re-typing the code as seen on screen for learning purposes, is a pain.
@simoncodrington
@simoncodrington 2 года назад
Ooo another great video. Always watch these when they pop up
@BarcelonaMove
@BarcelonaMove 2 года назад
This is so good, you should definitely be working directly at Unity itself.
@zojirushi1
@zojirushi1 Год назад
This is some top tier game dev content!! 👀
@odo432
@odo432 2 года назад
This is probably where assets like Odin Inspector would come in handy. But it can be quite costly for those with minimal money to spend so it's always nice to be able to do these things yourself. Good video.
@nabeelahmedsiddiqui8
@nabeelahmedsiddiqui8 2 года назад
Man you're a Master!!!
@SaiponathGames
@SaiponathGames 2 года назад
Really cool, good job, even though I use Godot, this video is still a little bit helpful for me as a game dev! Please do make more videos on concept of game dev that applies to all game engines though, it might be helpful really.
@MaZyYTube
@MaZyYTube 2 года назад
Omg nice, I was looking for this long time. I have a custom editor where I look for generic types. Unity does not show it.. it shows the parent. So I decided to make own list with the generic type scriptableobjects but I am using popup. Later I wanted to add own search window. I more look for the Asset search list but this is also enough. Very good.
@MaraldBes
@MaraldBes 2 года назад
I’ll probably have to watch this another 100 times before I can sort of understand it, but hopefully it is possible to use this on unity events as well. When I want to invoke some action using unity events and call to another class some lists of functions are so long that I have trouble finding the function I want to reference.
@AndersonMarquesss
@AndersonMarquesss 2 года назад
This is really useful, thanks for share with us.
@ShiNijuuAKL
@ShiNijuuAKL 2 года назад
I actually clicked this video just because I like your videos and not because I was particularly interested in this particular topic
@zeroxinfinity3718
@zeroxinfinity3718 2 года назад
Excellent Work
@LuizMoratelli
@LuizMoratelli Год назад
Did you already uploaded the video about graphviews?
@marten4story93
@marten4story93 Месяц назад
Please tell when you need to add using tags for the things you use in code
@brandonanderson8663
@brandonanderson8663 Год назад
It would be better if you stored the path in the userData instead of creating an object for every option. Than you can use this line to get the object on the OnSelectEntity method: var obj = AssetDatabase.LoadAssetAtPath((string)searchTreeEntry.userData);
@322ss
@322ss 2 года назад
Really neat! Thanks!
@WebMonkey741
@WebMonkey741 2 года назад
Hey Game Dev Guide! Great video! Thanks so much for putting this together! I've been playing around with my own version of your code and I noticed something in your video at 8:14. You select Fish --> Assorted in your search window list. Assorted shows up in your drop down control as you would expect. But when you then RECLICK your popup editor to retrigger your search window, your window is reset and you are put back to the top of your item heirarchy. If you had a fairly extensive heirarchy, (or in my case of a very long list of search tree entries) then it might be helpful to open the search window with the previous option automatically selected. In this way you wouldn't need to renavigate the options if you just wanted to select another leaf in the same grouping. Do you know if this is possible with the Search Window editor? Of course with the first / null option you could just default to the top entry like before, but it would seem to me that this would be very useful behaviour for the Search Window editor control. Thanks again!
@FyresGames
@FyresGames 2 года назад
Hey great tutorial. How could it be used for the Animation window Event dropdown list?
@SomeBodyThatYouUsedToKnow303
@SomeBodyThatYouUsedToKnow303 2 года назад
Can you, please, make tutorial on how to make custom editor that can hide variables in inspector according to other variables' value?
@khushalkhan83
@khushalkhan83 2 года назад
check naughty attributes on asset store
@christiangandha
@christiangandha 2 года назад
I need help, I have follow the Tutorial until 6:30, but I got an error when I call SearchWindow.Open() it said NullReferenceException and the window isn't opening. The difference is that I use ScriptableObject.CreateInstance instead of new StringListSearchProvider (I tried using this and it still throws an error + a warning saying that I need to create ScriptableObject not new) and in the SearchTreeEntry, there isn't a second parameter to input the integer. I'm using Unity 2020.3.17f1. Thanks
@Vastlee
@Vastlee 2 года назад
Great video, but the tag sticking out during your merch ad is going to ruin my entire OCD day!!!
@tkg__
@tkg__ 2 года назад
Why isn't Unity using this for the GameObject->Create dropdown? WTF, Unity.
@FerdinandJosephFernandez
@FerdinandJosephFernandez Год назад
That's interesting. There's a class called AdvancedDropdown that does the same thing, but isn't in an experimental namespace (it's in UnityEditor.IMGUI.Controls). And it's been there since Unity 2019.1 I believe. Code is different but works in a similar way. For example, it has a BuildRoot method instead of a CreateSearchTree.
@SubjektDelta
@SubjektDelta 2 года назад
just buy ODIN lmao
@prosfaction
@prosfaction 2 года назад
Thanks for helpful video about Search Window, but when you are inside the PropertyDrawer class you can you use fieldInfo.GetCustomAttribute() to get attribute of the field, so you don't need to write that huge function to GetCustomAttribute.
Далее
Мама знает где все документы
00:21
Пришёл к другу на ночёвку 😂
01:00
5 Things You Can Do To Make Games Like A Pro In Unity
9:45
Getting Started with Compute Shaders in Unity
14:03
Просмотров 198 тыс.
Designing a Loading Screen in Unity
11:57
Просмотров 179 тыс.
Building a Traffic System in Unity
17:55
Просмотров 217 тыс.