The one-shot helper in Unity doesn’t deal with parameters. But if you want to set parameters first the process is:
- Create instance
- Set parameters
- Start the instance
- Release the instance
By releasing the instance while it’s still playing it will play to the end and then automatically clean up all resources.