I made it in unity by new ui system but when I tested it in my 10.1 tablet, I saw that my buttons dont resize depend on different screens. I know that I can set positions depend on resulation by Anchor vut I dont know how I can resize them in different resulation.
It is complex to get it right like that. So make one step back and get it working at all, such that you understand what settings are needed. When you got that, generate it by code.