Unfold a cube into 6 squares with an animation.

Essentially what I want to do is take a regular cube game object and unfold it (With animation of it unfolding ideally) into a cube map/6 squares joined together like a cube. I’ve been unable to find any information on how to do this but I do know it’s possible or should be possible.

I’d then add text to the unfolded squares and when the user is done they’d fold back up into a cube.
(basically the cubes represent information and the user can click one to view more information and that’s how the new information will be displayed)

Using C# for this.

If you’re referring to the cube created by going to GameObject > 3D Object > Cube, it would be rather complicated as you would have to reposition all the vertices of each triangle with code. (Or expose all the vertex positions in the inspector and control their position through an animation, while updating all of their positions every frame).

An easier solution would be to make your own “Cube” out of quads (GameObject > 3D Object > Quad), and parent each quad to an empty game object positioned to where you want each cube face to pivot, parent all of those game objects to a “Cube” parent, and simply make an animation within Unity where each face rotates around it’s pivot until it is fully unfolded.