Detector and event visualization is an essential part in software of HEP experiments. Modern visualization technique and multimedia production platform, such as Unity, provides more fancy display effects and professional extensions for visualization in HEP experiments. In this work, a method of automatic detector description transformation is presented, which can convert the complicated HEP detector geometry from GDML in offline software to 3D modeling in Unity. The method has been successfully applied in the BESIII experiment, and can be further developed into applications such as event display, data monitoring or virtual reality. It has great potentials in detector design, offline software development, physics analysis and outreach for the next generation HEP experiments, as well as applications in nuclear techniques for industry.