且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

以米为单位获取距离

更新时间:2023-02-02 10:30:23

maxscript帮助中有专门针对此主题的整个主题,

There is a whole topic in maxscript help dedicated to this, Units Struct - Accessing System and Display Units

您需要的代码如下:

label1.text = units.formatValue myDistance