What is meta about _edit_use_anchors_?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By rakkarage
__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.

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

Ertain | 2022-02-07 00:27

:bust_in_silhouette: Reply From: skysphr

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.

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.

rakkarage | 2022-02-09 01:08