Visa have to be applied for online prior to arrival.
The online application can be found at:
https://visas.immigration.go.ug/