-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is it possible to add custom property for a node through the inspector? #11384
Comments
No. Use
|
I knew it's impossible for current release. And use export will bring in much stuff. |
@alexzheng |
For example, I have several menus extends from a base menu, and all buttons pressed signal is handled in a callback. If I can attach data to these buttons, It will not need to attach scripts to each button. |
@Zylann |
Just came up with another situation. |
Like tag properties? A sort of arbitrary dictionary every node (or even resource) can have? I think such a feature would need core dev advice (and would benefit only non-coders) |
This is supported but it's not really exposed.. maybe it should be
…On Sep 18, 2017 2:08 PM, "Marc" ***@***.***> wrote:
Like tag properties? A sort of arbitrary dictionary every node (or even
object) can have? I think such a feature would need core dev advice
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#11384 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AF-Z27CjZ_MWgY-m_fhcIQde2LhPHYf9ks5sjqOXgaJpZM4PaW13>
.
|
Yes, just like the tag, but Godot can have more kinds of types supported. |
Depends on the resolution of #18591. |
Duplicate of #5433. |
I wrote a plugin to solve exactly this issue: https://github.com/ballerburg9005/godot-metadata-inspector |
Operating system or device, Godot version, GPU Model and driver (if graphics related):
ALL
Issue description:
It's easy to add property to a node by call Object.set ( String property, Variant value ).
For some cases, we may need to add some nodes of the same type and attach some data to each node without extends the Node.
of course, this may be done through scripts. But it will be intuitive this may be done just through the inspector.
Steps to reproduce:
Link to minimal example project:
The text was updated successfully, but these errors were encountered: