-1
\$\begingroup\$

I am looking to make a musical sheet similar to the image below:

Ocarina of time image reference

I want to:

  • use sprites prefabs
  • have each sprite correspond to a different line
  • Move down notes are more are being played
  • have tail end notes disappear or go outside of text view (like when you type past a search bar)

I am unsure if there is a UI asset in Unity that can perform what I just mentioned. I was thinking could just instantiate the prefabs in the right positions, shift them down, then delete the tail end prefabs as more are being played. Outside of that, I'm lost.

\$\endgroup\$
6
  • 1
    \$\begingroup\$ The behaviour you describe sounds more like Guitar Hero than Ocarina of Time. How have you tried spawning and moving your prefabs so far, and where did you get stuck? \$\endgroup\$
    – DMGregory
    Mar 22 at 20:35
  • \$\begingroup\$ I haven't yet. But I know how to do that. I was just trying to see if there was a Unity UI component that could do what I am trying to achieve. And guitar hero is a perfect example of what I am trying to achieve. I can use that for reference. @DMGregory. \$\endgroup\$ Mar 22 at 21:16
  • \$\begingroup\$ To clarify I meant trying to see if there was Unity functionality that can spawn sprites on different lines. I guessing there isn't and I just have to use a game object and positioning to get that effect. \$\endgroup\$ Mar 22 at 21:25
  • 2
    \$\begingroup\$ Sounds to me like you should follow through with your guess, and ask for help here if you run into a snag you can't solve with what you know so far. \$\endgroup\$
    – DMGregory
    Mar 22 at 21:27
  • \$\begingroup\$ Okay, thank you for your time anyway. \$\endgroup\$ Mar 22 at 21:43
0
\$\begingroup\$

Decided to forego the UI approach and instead used a game object with four empty children used positions. I use 1 sprite to make up the display and have others spawn on the display. Then I just set two colliders at the end of each end of the display to push back notes and despawn others.

\$\endgroup\$
1
  • \$\begingroup\$ This answer would be even better with a code sample, or diagrams/screenshots demonstrating your setup. \$\endgroup\$
    – DMGregory
    Mar 27 at 17:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.