Notifications
bg
cr
charles dylan ryan
Bellingham, United States
0
Likes
0
Followers
0
Connections
All
Articles0
Games0
Showcases0
Column0
Jobs0
hey I have a question, how do i make it so the confetti trigger also triggers a sound to play?

a month ago
public class PlayAudioOnTrigger: MonoBehaviour {public AudioClip audio; void OnTriggerEnter(Collider col){ AudioSource.PlayClipAtPoint(audio, transform.position);} }
a month ago
You can trigger an audioSource through code.
a month ago
Check this course (https://learn.unity.com/project/unit-3-sound-and-effects). Especially in chapter 3.4. This is amazing. After a long time programing, this course helps me to understand a lot of Unity concepts that I miss up running by my own!! Hope this can help you!!
AP
Anil Punjabi
Sr Developer - Unity3D and iOS
a month ago
share your code with me.
About Me
No description
See more
Skills
No skills added yet
Certifications (0)
Import
See all
charles dylan ryan's liked projects (0)
No likes yet
Following (0)
Not following anyone yet
Followers (0)
No followers
Following Companies (0)
Not following anyone yet