There is an attribute "Uda units" where you can select the units you want the uda to use, doesn't this do what you need it to? I just created a uda which holds e.g. "1 bar".
There is an attribute "Uda units" where you can select the units you want the uda to use, doesn't this do what you need it to? I just created a uda which holds e.g. "1 bar".