- Home /
Question by
mikeywill21 · Jun 15, 2020 at 03:49 AM ·
uiaudiounity 2d
Control Sound volume based on scroll rect position
I am building a 2d game and using a scoll rect to scroll through the game vertically and horizontally. I want to play sound effects when my player shoot at one another but set the volume based on where the where the scroll rect content is positioned. For example, the sound is loud and clear when the content rect transform position is right on top of the shooting, but gets fainter as the player scrolls away.
Comment
Your answer
Follow this Question
Related Questions
Visual Novel Events 0 Answers
accessing the previous click object information 0 Answers
IsPointerOverGameObject not working with TouchPhase.Ended 0 Answers
One Slider Control More Than One Sound 1 Answer
Using UI buttons for Input Manager 0 Answers