GUI Editor components not as unique_ptr

Is there an option in the GUI editor to change how new Components are added?
By default they are added as unique_ptr, which isn’t optimal in a lot of cases. For example if I want to attach the component to a treeState parameter I have to release it and I can’t use it later.

Thanks in advance.

Why would you need to release the unique_ptr?

You can use std::unique_ptr::get() to get the pointer without releasing it.

The treeState docs specify you need to keep your UI objects alive while it holds a reference.

I tried .get(), but it did not work, only release worked.