At present, research on coal mine emergency rescue path optimization is mostly in the stage of computer simulation calculation. In order to further promote its application in the actual environment of complex roadway, a cross-platform mine emergency rescue path optimization scheme was proposed.Influencing factors of roadway passage are abstracted as impact factors for easy calculation, and actual length of the roadway and passage difficulty are combined to calculate equivalent value of the roadway; Dijkstra algorithm is adopted to solve mine emergency rescue path using the equivalent value as the path length; the emergency search path optimization algorithm can runs on platforms such as computers and mobile terminals taking advantage of the cross-platform nature of Unity engine. Practical application results show that the scheme can bypass road sections that are impassable due to accidents, and provide accurate and effective underground disaster avoidance paths, thus providing technical support for the field application of underground emergency rescue path optimization.