Get the object by uniqueId

I created a rectangle using Babylon gui, his uniqueId is 32, how can I get this object through uniqueId?
I try scene.getUniqueId & scene.getMeshByUniqueID but get none.


Does babylon have a method similar to getById or find ?

As this is for GUI, you can call:

adt.executeOnAllControls(c => {
   if (c.uniqueId === 32) {
     alert("found it!")

Thanks, friend.
How should I find its api when I use it? The method you said I did not find in the babylon gui documentation.

it is right here: AdvancedDynamicTexture - Babylon.js Documentation