  Detector and event visualization are essential parts of the software used in
high-energy physics (HEP) experiments. Modern visualization techniques and
multimedia production platforms such as Unity provide impressive display
effects and professional extensions for visualization in HEP experiments. In
this study, a method for 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 was successfully applied
in the BESIII experiment and can be further developed into applications such as
event displays, data monitoring, or virtual reality. It has great potential in
detector design, offline software development, physics analysis, and outreach
for next-generation HEP experiments as well as applications in nuclear
techniques for the industry.
