Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Showcase Node finder for unity visual scripting

Discussion in 'Visual Scripting' started by myanko, Oct 18, 2021.

  1. Ignacii

    Ignacii

    Joined:
    May 23, 2013
    Posts:
    91
    After deleting the previous version and then installing the 0.5 version it still shows 0.4 in the finder window and can't find the scene hierarchy tab anywhere. The only thing that's different from 0.4 is that I'm no longer getting any errors. At least yet. Crossing fingers :D
     
  2. myanko

    myanko

    Joined:
    Nov 9, 2013
    Posts:
    53
    Oups I forgot to manually increament the value...
     
  3. Ignacii

    Ignacii

    Joined:
    May 23, 2013
    Posts:
    91
    Thanks for the quick response! And how about the scene hierarchy feature? Couldn't find it anywhere. Since I had to use more than one script machine in the project it would be very useful to be able to find nodes in all the machines present in the scene.
     
  4. myanko

    myanko

    Joined:
    Nov 9, 2013
    Posts:
    53
    I'm worried, do you mean that the hierarchy tab don't show ?I
     

    Attached Files:

  5. Ignacii

    Ignacii

    Joined:
    May 23, 2013
    Posts:
    91
    Apologies, my bad. I expected 0.5 to have a new tab or something. Everything is working flawlessly so far and I thank you.
     
  6. myanko

    myanko

    Joined:
    Nov 9, 2013
    Posts:
    53
    Ouff. Nice to ear. I you find anything, I would be glad to help.
     
  7. Ignacii

    Ignacii

    Joined:
    May 23, 2013
    Posts:
    91
    Hello and hope you're doing well. I want to express my gratitude again for this asset. It's the most important one for sure in my arsenal :)! I absolutely can't imagine working without it now. Do people use it?? What are the stats I wonder? :DHave all visual scripters found it...? Visual Scripting is practically impossible without it for mid to large projects.

    I wish Unity buys it for a lot of money as it's an absolute necessity for UVS!
     
  8. brooklyn

    brooklyn

    Joined:
    Oct 22, 2013
    Posts:
    1
    Such great work!

    It’s free? Let us pay you!
     
    myanko and Ignacii like this.
  9. Ignacii

    Ignacii

    Joined:
    May 23, 2013
    Posts:
    91
    myanko likes this.
  10. artokarsus_unity

    artokarsus_unity

    Joined:
    Mar 18, 2019
    Posts:
    4
    Great asset! Thank a lot, it's working, but in my case - I think it's working partially, cause it's throwing this errors (JFYI):

    1.jpg 2.jpg 3.jpg 4.jpg
     
  11. myanko

    myanko

    Joined:
    Nov 9, 2013
    Posts:
    53
    It would be nice, but I think it will never happen. :p. I'm just glad it can help people and to be able to contribute with something to share my love for visual scripting and game making.
     
    Ignacii likes this.
  12. myanko

    myanko

    Joined:
    Nov 9, 2013
    Posts:
    53
  13. myanko

    myanko

    Joined:
    Nov 9, 2013
    Posts:
    53
  14. artokarsus_unity

    artokarsus_unity

    Joined:
    Mar 18, 2019
    Posts:
    4
    Yes, you right, I'm on M1
     
  15. literacy

    literacy

    Joined:
    Nov 14, 2021
    Posts:
    50
    I installed this as soon as it came out, and it was amazing and worked perfectly!

    I upgraded to 0.5 shortly after the update came out, and the search only seems to find some nodes now and not others. As far as I can tell, it only seems to search subgraphs that are saved to disk (not embedded graphs). It also will search a subgraph if I'm currently in the subgraph (the results will show in the Current Graph).

    I deleted the package and re-installed it and it's still not working as well as before. Any ideas? Thank you for your amazing work!!
     
  16. myanko

    myanko

    Joined:
    Nov 9, 2013
    Posts:
    53
    We added a new feature, to be able to narrow the search in graphs to what you see in current graph or to let the user grab more stuff.

    Sorry for the late reply. This new feature is possibly the reason why you are not getting as much stuff as before.

    Put your state Context to All and you should get the same expected results from before.
    upload_2023-10-5_11-26-17.png

    State contexts
    - All:
    Search in all the graphs, subgraph and
    - Current: Search only in the currently opened graph, won't search in the parent graph or in subgraphs.
    - Children: Enable the search from current graph and all the embedded graphs,macros.
     
    literacy likes this.
  17. myanko

    myanko

    Joined:
    Nov 9, 2013
    Posts:
    53
    We are looking at some fix for M1 and harmony dll. Don't know when it will come out.
     
  18. termway

    termway

    Joined:
    Jul 5, 2012
    Posts:
    37
    Hello there,

    I also had the same problem with Embed graph in prefab.
    Node are not found in embed prefab with the State Context: All.

    But I got this log which indicate an exception. I think it would be better if it was a log error btw.

    Code (CSharp):
    1. encountered an error while searching in all scripts Object reference not set to an instance of an object   at Unity.VisualScripting.UVSFinder.GraphElement.GetNameFromSpecificTypes (Unity.VisualScripting.IGraphElement ge) [0x01366] in C:\ws\sentry_games_git\obec\obec\Assets\ThirdParties\com.sokatoa.uvs.finder\Editor\Serialization\GraphElement.cs:278
    2.   at Unity.VisualScripting.UVSFinder.GraphElement.GetElementName (Unity.VisualScripting.IGraphElement ge) [0x00007] in C:\ws\sentry_games_git\obec\obec\Assets\ThirdParties\com.sokatoa.uvs.finder\Editor\Serialization\GraphElement.cs:20
    3.   at Unity.VisualScripting.UVSFinder.UVSSearchProvider.isFoundElement (Unity.VisualScripting.UVSFinder.SearchContext searchContext, Unity.VisualScripting.IGraphElement currentElement) [0x00001] in C:\ws\sentry_games_git\obec\obec\Assets\ThirdParties\com.sokatoa.uvs.finder\Editor\UVSSearchProvider.cs:482
    4.   at Unity.VisualScripting.UVSFinder.UVSSearchProvider.GetElementsFromIGraph (Unity.VisualScripting.GraphReference reference, Unity.VisualScripting.IGraph graph, System.String assetPath, Unity.VisualScripting.UVSFinder.SearchContext searchContext, Unity.VisualScripting.UVSFinder.ResultItemList searchItems) [0x0003a] in C:\ws\sentry_games_git\obec\obec\Assets\ThirdParties\com.sokatoa.uvs.finder\Editor\UVSSearchProvider.cs:275
    5.   at Unity.VisualScripting.UVSFinder.UVSSearchProvider.GetElementsFromStateGraph (Unity.VisualScripting.GraphReference reference, Unity.VisualScripting.StateGraph graph, System.String assetPath, Unity.VisualScripting.UVSFinder.SearchContext searchContext, Unity.VisualScripting.UVSFinder.ResultItemList searchItems) [0x00012] in C:\ws\sentry_games_git\obec\obec\Assets\ThirdParties\com.sokatoa.uvs.finder\Editor\UVSSearchProvider.cs:323
    6.   at Unity.VisualScripting.UVSFinder.UVSSearchProvider.FindNodesFromStateGraphAssetGuid (System.String guid, Unity.VisualScripting.UVSFinder.SearchContext searchContext, Unity.VisualScripting.UVSFinder.ResultItemList searchItems) [0x00056] in C:\ws\sentry_games_git\obec\obec\Assets\ThirdParties\com.sokatoa.uvs.finder\Editor\UVSSearchProvider.cs:212
    7.   at Unity.VisualScripting.UVSFinder.UVSSearchProvider.PerformSearchAll (System.String keyword, System.Boolean isExact) [0x0006d] in C:\ws\sentry_games_git\obec\obec\Assets\ThirdParties\com.sokatoa.uvs.finder\Editor\UVSSearchProvider.cs:155
    8. UnityEngine.Debug:Log (object)
    9. Unity.VisualScripting.UVSFinder.UVSSearchProvider:PerformSearchAll (string,bool) (at Assets/ThirdParties/com.sokatoa.uvs.finder/Editor/UVSSearchProvider.cs:183)
    10. Unity.VisualScripting.UVSFinder.UVSFinder:PerformSearch (string,bool) (at Assets/ThirdParties/com.sokatoa.uvs.finder/Editor/UVSFinder.cs:219)
    11. Unity.VisualScripting.UVSFinder.UVSFinder:OnSearchAction (string,bool) (at Assets/ThirdParties/com.sokatoa.uvs.finder/Editor/UVSFinder.cs:347)
    12. Unity.VisualScripting.UVSFinder.UVSGraphElementWidgetExt:OnFind (string) (at Assets/ThirdParties/com.sokatoa.uvs.finder/Editor/ContextExtension/UVSGraphElementWidgetExt.cs:181)
    13. Unity.VisualScripting.UVSFinder.UVSGraphElementWidgetExt/<>c__DisplayClass1_0:<Postfix1>b__2 () (at Assets/ThirdParties/com.sokatoa.uvs.finder/Editor/ContextExtension/UVSGraphElementWidgetExt.cs:131)
    14. Unity.VisualScripting.GraphWindow:OnGUI () (at Assets/ThirdParties/com.unity.visualscripting@1.8.0/Editor/VisualScripting.Core/Windows/GraphWindow.cs:740)
    15. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    16.  
    So the fix was pretty straightforward for me:

    upload_2023-10-6_15-36-8.png
     
    Last edited: Oct 6, 2023 at 6:17 PM
    myanko likes this.
  19. literacy

    literacy

    Joined:
    Nov 14, 2021
    Posts:
    50
    Thank you for the reply!

    Just checked my Preferences, and the State Context was already set to All.

    upload_2023-10-8_11-20-32.png

    I changed it to something else just now and then changed it back, to see if that would fix it... but seeing the same results as before.
     
  20. literacy

    literacy

    Joined:
    Nov 14, 2021
    Posts:
    50
    I saw the mention of an error in the Console log, so I did a search (that found nothing) and checked the Console. Sure enough, there's an error! (I anonymized my folder names, but other than that it's a cut and paste of the error.):

    encountered an error while searching in all scripts Object reference not set to an instance of an object at Unity.VisualScripting.UVSFinder.GraphElement.GetNameFromSpecificTypes (Unity.VisualScripting.IGraphElement ge) [0x00f7a] in C:\Users\username\Unity\My Project\Assets\com.sokatoa.uvs.finder\Editor\Serialization\GraphElement.cs:246
    at Unity.VisualScripting.UVSFinder.GraphElement.GetElementName (Unity.VisualScripting.IGraphElement ge) [0x00006] in C:\Users\username\Unity\My Project\Assets\com.sokatoa.uvs.finder\Editor\Serialization\GraphElement.cs:20
    at Unity.VisualScripting.UVSFinder.UVSSearchProvider.isFoundElement (Unity.VisualScripting.UVSFinder.SearchContext searchContext, Unity.VisualScripting.IGraphElement currentElement) [0x00000] in C:\Users\username\Unity\My Project\Assets\com.sokatoa.uvs.finder\Editor\UVSSearchProvider.cs:482
    at Unity.VisualScripting.UVSFinder.UVSSearchProvider.GrabElements (Unity.VisualScripting.IGraphElement e, System.String stateName, UnityEngine.GameObject gameObject, Unity.VisualScripting.GraphReference reference, Unity.VisualScripting.IGraph graph, System.String assetPath, Unity.VisualScripting.UVSFinder.SearchContext searchContext, Unity.VisualScripting.UVSFinder.ResultItemList searchItems) [0x002d5] in C:\Users\username\Unity\My Project\Assets\com.sokatoa.uvs.finder\Editor\UVSSearchProvider.cs:439
    at Unity.VisualScripting.UVSFinder.UVSSearchProvider.FindNodesFromScriptGraphAssetGuid (System.String guid, Unity.VisualScripting.UVSFinder.SearchContext searchContext, Unity.VisualScripting.UVSFinder.ResultItemList searchItems) [0x0006b] in C:\Users\username\Unity\My Project\Assets\com.sokatoa.uvs.finder\Editor\UVSSearchProvider.cs:197
    at Unity.VisualScripting.UVSFinder.UVSSearchProvider.PerformSearchAll (System.String keyword, System.Boolean isExact) [0x0002c] in C:\Users\username\Unity\My Project\Assets\com.sokatoa.uvs.finder\Editor\UVSSearchProvider.cs:150
    UnityEngine.Debug:Log (object)
    Unity.VisualScripting.UVSFinder.UVSSearchProvider:performSearchAll (string,bool) (at C:/Users/username/Unity/My Project/Assets/com.sokatoa.uvs.finder/Editor/UVSSearchProvider.cs:183)
    Unity.VisualScripting.UVSFinder.UVSFinder:performSearch (string,bool) (at C:/Users/username/Unity/My Project/Assets/com.sokatoa.uvs.finder/Editor/UVSFinder.cs:219)
    Unity.VisualScripting.UVSFinder.UVSFinder:OnSearchAction (string,bool) (at C:/Users/username/Unity/My Project/Assets/com.sokatoa.uvs.finder/Editor/UVSFinder.cs:347)
    Unity.VisualScripting.UVSFinder.UVSFinder:OnSearchAction () (at C:/Users/username/Unity/My Project/Assets/com.sokatoa.uvs.finder/Editor/UVSFinder.cs:356)
    Unity.VisualScripting.UVSFinder.UVSFinder:OnKeyUp (UnityEngine.UIElements.KeyUpEvent) (at C:/Users/username/Unity/My Project/Assets/com.sokatoa.uvs.finder/Editor/UVSFinder.cs:308)
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)
     
  21. termway

    termway

    Joined:
    Jul 5, 2012
    Posts:
    37
    I think you have an error similar to mine. I would suggest you to open the GraphElement.cs file to add ? character in the line 246.
    Code (CSharp):
    1. name = $"{subgraph.nest?.macro.name} [SubGraph]";