How to get object metadata made in the editor into a variable

Godot Version

4.3 stable

Question

var ear = self.get_meta()

how to put object metadata (created in the editor) into a variable

Hello, @Leviider_Games! I think you can put get_meta() at func _ready():. For example:

var ear: int

func _ready():
    ## Example metadata has type int
    ear = get_meta("Example")
    print(ear)