The dynamics of a second-order phase transition during inflation, which is induced by time-variation of spacetime curvature, is studied as a natural mechanism to produce topological defects of typical grand unification scales such as cosmic strings or global textures. It is shown that their distribution is almost scale-invariant with small- and large-scale cutoffs. Also discussed is how these cutoffs are given.