Question by
unity_E1C64C3783B7BDAB9A10 · May 04, 2021 at 06:36 PM ·
metadata
Is it possible to find objects by a Unity Reflect metadata property, as you would find by tag or by name?
Hi,
I'm having a bit of trouble, as I find no documentation about this. I wish to do a script that takes the user input from two serialized fields, one containing the metadata key, and the other containing the metadata value that should be contained in that key. Basically, I want to find all objects that have a certain metadata property with a certain value, and add a script to them on the fly. This will be done inside the Awake() method. However, I don't know how to find objects by metadata. Is it possible?
Kind regards, Samuel Lourenço
Comment