Is it possible to put a world space UI onto an instantiated object?

I want to instantiate an object, then have buttons on it. Each instantiation should have the same buttons that do the same things. How to do this?

Hi! You need to add Canvas to your gameobject, and switch canvas “Render mode” setting to “World space”.

but how to add camera to the prefab ui canvas