How can I expose child node properties to editor without using "editable children"?

Godot Version

4.2.2

Question

I have a RigidBody3d node which, internally, has a MeshInstance3D child.

Now, of course, I can just click “editable children” to edit the mesh (more specifically, I’d like to override the surface material.)

However, I’d like a way to expose that property to the inspector when I click the node.

What are my options here?

There’s no other way natively, the way to do it is to use that

You can otherwise expose a property on the root node that sets the data you want, like so:

@export var my_material : Material:
    set(value):
        $MyNode.material = value
    get():
        return $MyNode.material

For example, just adjust to your needs

2 Likes