Expresses doing something while a certain condition still holds; 'while', 'before', 'as long as'.
Long explanation:
The ~うちに grammar point is used to indicate that an action should be done while a certain condition still exists or before a situation changes. It can be translated as 'while', 'before', or 'as long as' in English. The formation differs depending on whether it is used with a verb, い-adjective, な-adjective, or noun.