How to make tab with UGUI?

Tab means, when user click tab button, other UI elements are changed.

How to make these?

with gameObject.SetActive(true/false) mechanic? or another neat way?

We made a script that has 2 gameObject arrays, Enable and Disable, attach it to your tab object with a button and then drag the relevant objects to the corresponding arrays. Then make the code setActive true/false on those objects.

SetActive is the easiest way, so long as your script for doing so is on a separate manager (usually on the container between the two tabs)