I don't know why i didn't see that before

Just use LuaUdataParam<T>::fun = &UdataLib<T>::func