Skip to content
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

Undocumented way to remove metadata variants in Object #4010

Closed
Rubonnek opened this issue Sep 13, 2020 · 0 comments · Fixed by godotengine/godot#42036
Closed

Undocumented way to remove metadata variants in Object #4010

Rubonnek opened this issue Sep 13, 2020 · 0 comments · Fixed by godotengine/godot#42036

Comments

@Rubonnek
Copy link
Member

Your Godot version:
3.2

Issue description:
The Object class documentation does not state that using null in a set_meta call deletes the specified metadata entry.

#!/usr/bin/godot -s
extends SceneTree

func _init():
	print("Unmodified Meta List")
	print(get_meta_list())
	print("New test meta")
	set_meta('test', true)
	print("Modified Meta List -- added: test")
	print(get_meta_list())
	set_meta('test', null)
	print("Modified Meta List -- removed: test")
	print(get_meta_list())
	quit()

This should be documented.

URL to the documentation page (if already existing):
https://docs.godotengine.org/en/stable/classes/class_object.html

@Rubonnek Rubonnek self-assigned this Sep 13, 2020
@Rubonnek Rubonnek removed their assignment Sep 13, 2020
Calinou added a commit to Calinou/godot that referenced this issue Sep 14, 2020
akien-mga pushed a commit to godotengine/godot that referenced this issue Sep 14, 2020
MarcusElg pushed a commit to MarcusElg/godot that referenced this issue Oct 19, 2020
huhund pushed a commit to huhund/godot that referenced this issue Nov 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant