Use a UI Mask on ParticleSystem

Is it possible to use a UI Mask component with a ParticleSystem? If possible, can someone explain to me how to set it up or point me to some documentation? Thanks!

I think you must render the ParticleSystem with a different camera and then use a RenderTexture with the camera now you can use RawImage to display it then add a UI mask