0 votes

I'm working on an EditorPlugin that adds a custom object type which stores a number of values in a dictionary. I'd like some of those values to be NodePaths relative to that custom object, but I don't want the end user to type them.

If I export a NodePath variable, it creates a handy Node Selection Widget that can be used to select a node from the currently-edited scene tree. I'd like that functionality, but I don't want to export variables -- the number of NodePaths I'd need is dynamic based on earlier actions taken when using the plugin.

How can I go about getting a FileDialog-like popup listing the currently edited scene's contents?

in Engine by (103 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.