+1 vote

How to use an export-variables to bind it to a child property (like a albedocolor of a meshinstance).

For example:

There is a player script attached to a root node with contains all the player meshes (and other objects as structured children.
In the player script I want to create an exportvariable, with it I then can control the color of a meshinstance for a child of the player node.

After a quick research I figured out, that the key could be "setget", but there was no example available for C#.

I think this is easy to accomplish, but I'm having trouble to do this.
Any hints?

in Engine by (20 points)
edited by

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.