In Shanghai Wei found work at a photo studio owned by He Zuomin, a photographer for the
Mingxing Film Company. Influenced by the studio's many customers from the film industry, she became fascinated with acting. In 1940 she enrolled in a drama school and was employed by the
Xinhua Film Company after graduation. She adopted the name Shangguan Yunzhu suggested by the influential director
Bu Wancang. After successfully playing the female lead in
Cao Yu's stage play
Thunderstorm, Shangguan joined the Yihua Company and made her film debut in
Fallen Rose in 1941. In 1942 Shangguan joined the Tianfeng Drama Society, where she met the playwright
Yao Ke (). The next year Shangguan divorced Zhang Dayan and married Yao. In August 1944 she gave birth to a daughter named Yao Yao (). However, her new marriage was short-lived due to Yao's infidelity, and the couple divorced before their daughter turned two. Shangguan subsequently had a brief relationship with the actor (). In the post-war period, Shangguan Yunzhu played her first lead roles in
Dream in Paradise directed by
Tang Xiaodan and
Long Live the Missus! directed by
Sang Hu. She then starred in several leftist films including
Spring River Flows East (1947, directors
Cai Chusheng and
Zheng Junli),
Myriad of Lights (1948, director
Shen Fu),
Crows and Sparrows (1949, director Zheng Junli), and
Women Side by Side (1949, director
Chen Liting). Her masterful performances in these popular films brought her great fame and critical acclaim. ==After 1949==