It is unfolding the faces of the solid onto a plane. Each face appears in true size and joined to the next by an edge.
Draw as many rectangles as the prism has faces, side by side. The base of each one is the side of the polygon and the height is that of the prism.
Check: the width of the lateral net must equal the perimeter of the base. If it does not add up, you rounded wrong or a face is missing.
Besides the right prism: