UDON GRAPH | Play random Sound (from Array with a collider trigger)

This is a working example for playing a random sound clip (from array)

Add this to a (e.g. invisible) collider and play random sounds.
You can add as many sounds as you like.

Special Thanks to the @TheHelpfulHelper in Discord, that helped me getting it finally to work.


This is the Graph for copy and paste (The OnPlayerTriggerEnter is not copied over for whatever reason) :

application/vnd.unity.graphview.elements ANVW2W7bRhT9FYPPGmFWDkeAH1LHDYwuCWpHL4kh3NlUttTQ4JJWUPxlfegn9RcylCzJlhSViCM0hfQgkqPhuWe5c//56+9F8gGK1iWjd4vEt0XxM8ziRTKGKgdduMnbkDfzyzDNg3vR2ry8KPK7F1UF82SQtLmNS5kBoIxYxIy2iBMlEYAQKFNKA0hlIUvj4ruyzpu8DMlokfyZjBCTEuMhHiTzZESwEGTIM8zTTIr7QRJK695evawjrCT+d/u9HSS+KP94eHa7WjnuKqiXJbQd3Nf6N2ea8aquRZKHuoFg3NXLZITj5nVT5WH68Dh5VOBwU2Hc+WzvwU+lbQs3OBu7qo6FnEf03WdwdtEWTVu58+DapoJicPam1UVufnDzm/J3F85D5PXj4v2K6fcd7vvkfvAlYK/ndeNmw+vlzcHZrDZlVeR6i4n3xaSlBGFEShTjDmfq43XZBuvzwtWTlb7PQvhdWRYOwteFeFPFV3x7sL6Hon4mrlMIGsoQUd12uB4F+7N5Hk4mr1wzmawQXYWG0cnB9G+C76RVhhGGJPgUcZNZBDgViDmGncfcMOb3g0+Iekg9JXS4G3ZLvWYMKHLMKMQVThFkGiOOLTZWOkKAxD0pU0o45RH3OC7zgqFMYIsiCQqsUBlm2Ql6xfNEXnL6dTXGRwX+BYItZ1HY+GPqnkr7ROZHFxt1e1G839YlW6ur8JArJYXIhGKHurqX2AJzEnmrSXyDp0hTcPEyxVoBcGfYCUQ8qRr/K3/sNYBpbAA/ujBtfj3siV6K7XuCCrwxBTtmil7pP0Wsd0nqOuF6BNpU37M37VYvMN80PL7X8E5n8FOcKb1mvS8Lwb87NU4olXHRpm8KmK8NOi6jNmuFMkwy58Eg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