With the rapid development of virtual reality technology (VR), application systems based on VR have been demonstrated in wide fields, which therefore make it attractive to many university students. The process of learning VR requires intensive programing and intuitive observation as well as strict understanding of basic concepts, significantly different to that of other courses. The current widely used framework of learning system is not suitable to the VR learning. In this paper, we present a learning platform based on Unity 3D for VR learning. This system combines knowledge learning, real-time interaction between virtual scene control and C# writing/compiling. Compared with other learning systems, this system can greatly promote the learning enthusiasm and efficiency for C# programming in 3D VR applications.