0 votes
__meta__ = {
"_edit_use_anchors_": false
}

What is meta about this setting? This is the global use anchor icon on tool bar? Why does it get embedded into each node? It seems like any file they are in works the same with them all removed anyway? Thanks.

Godot version 3.x - 4.x
in Engine by (1,867 points)

What is the source of this? Where was the code found?

1 Answer

+1 vote
Best answer

Yes, the _edit_use_anchors_ meta refers to whether the node is in "edit anchors instead of margins" mode. The setting is not global, it works on a per-node basis, hence the need of embedding it into meta. You can find the source code behind it inside editor/plugins/canvas_item_editor_plugin.cpp.

by (1,261 points)
selected by

Then it must be bugged because (in 3 and 4) I can make a new Control scene, add a ColorRect child save and get this:

[gd_scene format=2]

[node name="Control" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}

[node name="ColorRect" type="ColorRect" parent="."]
margin_right = 40.0
margin_bottom = 40.0

without the anchor button being touched or changing or indicating the change it made by turning off the anchor for that item when selected.

Or maybe i misunderstand.

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 webmaster@godotengine.org with your username.