Topic was automatically imported from the old Question2Answer platform.
Asked By
goshot
With this in a script:
extends Node
export(Resource) var resource
Clicking on the node brings up the node in the Inspector panel at right. Under Script Variables, “Resource” is displayed along with an box indicating empty and and arrow to access the New Resource menu. This menu is very long and requires scrolling all the way to the bottom to access the Load command for loading a resource file and for copying and pasting resources.
Is there a way to make this more efficient or skip to the bottom of the menu without scrolling all the way with the middle mouse button?
export(Resource) litterally tells the editor that this variable can contain any type of resource. So it’s showing you everything.
I think it was mentionned somewhere on Github that this should be adressed, like showing a proper window with search option instead, but I can’t find it right now.
Thanks for answer and link to github issue. For anyone else who reads this, unlike what is reported in the github issue, I do not see my custom resource in the list even with class_name defined in the custom resource script. I can find it when clicking on the icon for creating a new resource in memory right under Inspector in the inspector tab.