So I’ve just downloaded Unity for a school project and I have zero background with C# and coding in general. I have one semester of Java basics under my belt but that’s pretty much it, and just simple things like loops and if statements and boolean logic. For my project, I’m basically going to need to display a human body with each limb and major region as a separate sprite (I already have all the graphics done) and I want it so that when you hover over one of the major areas i.e. the left arm, it will look like it’s being hovered over with a little yellow border around it (I have the graphic for that done as well). Then, when it’s clicked on, I want it to zoom into that specific body part with an animation and then have different sprites that I can click, and when these sprites are clicked they would print out information. Can anyone lead me into the right direction of at least how to write like a “Hello World” program that runs when a sprite is clicked? I’ve tried researching this but not a lot of guides out there that explain everything, every guide has some sort of prerequisite knowledge that I don’t have of C#.
You can try this.
then use Update{Input.MouseButton(0) {}}
also this works
https://docs.unity3d.com/ScriptReference/EventSystems.IPointerEnterHandler.html
+https://docs.unity3d.com/ScriptReference/EventSystems.IPointerClickHandler.html
If you want in depth help feel free to message me on Discord now_i_won #9541
Im willing to do a screenshare walkthrough.
1 Like