I want to make a method that can instantiate any UI prefab I plug into it so it has multiple uses. I know that the UI buttons can only hold 1 parameter. is there a work around?
Code (CSharp):
- UIPrefab.transform.SetParent(canvas, false);
- }