Given a Canvas
test_canvas containing a Button
test_button and an empty GameObject that manages instantiation and scripts and the like called
test_manager, what are the steps to instantiate this button through code as opposed to having it already there?
I've tried making the button a prefab and instantiating it as I would any other object but that didn't work. I tried making the canvas a prefab and then trying the button but nothing. I've searched around for quite some time and there's mention of RectTransform and SetParent but steps or specific details would clear up my confusion