cinni
Full Member ⚓︎
  

believe in your dreams <3
⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: cinni


|
 |
« on: March 02, 2022 @138.47 » |
|
hey melon citizens, i thought it would be helpful to share some resources if you're a newbie at unity/c# in general (like me, haha). i've tried out various tutorials but always forget about the basics, so i'm going to update this topic as i come across helpful things. :chill: check back later for more links!!!1
Basic Player Controller
i was looking for a simple way to implement 1st/3rd player and thought about disabling the player mesh when switching views - and i should be able to this way. I plan to add on to this script, so i'll update this with any news xP
EDIT: here's how to toggle between 1st+3rd view by disabling the player mesh :-) add this part at the top with your other variables:public MeshRenderer playerMesh;
and then in your void Update(), add this to the end: if (Input.GetKeyUp(KeyCode.C))
{
playerMesh.enabled = !playerMesh.enabled;
}
huzzah! initally i had "GetKey" but it would toggle WAY too fast between the two, but "GetKeyUp" fixed this issue hehe
Other Resources: My unity tutorial playlist Random scripts (animating textures, randomized npc walking, etc) Multiplayer tutorial (i really need to finish this! ack!!!)
|