Home Entrance Wiki Search Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
March 29, 2024 - @577.67 (what is this?)
Forum activity rating: Three Star Posts: 46/1k.beats Unread Topics | Unread Replies | Own Posts | Own Topics | Random Topic | Recent Posts
News: :transport: :transport: More is More :transport: :transport:

+  MelonLand Forum
|-+  Art & Games
| |-+  ✎ ∙ Art Crafting
| | |-+  Unity Basics!


« previous next »
Pages: [1] Print
Author Topic: Unity Basics!  (Read 1889 times)
cinni
Full Member ⚓︎
***


believe in your dreams <3

SpaceHey: Friend Me!
StatusCafe: cinni

View Profile WWW

First 1000 Members!OG! Joined 2021!
« 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:

Code
public MeshRenderer playerMesh;

and then in your void Update(), add this to the end:
Code
    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!!!)
« Last Edit: March 02, 2022 @167.31 by cinni » Logged

Pages: [1] Print 
« previous next »
 

Vaguely similar topics! (3)

HELP: Unity/C# Random Weather Script

Started by cinniBoard ☔︎ ∙ I need Help!

Replies: 1
Views: 1014
Last post May 17, 2022 @786.75
by Melooon
Unity games

Started by GuestBoard ♖ ∙ Video Games

Replies: 11
Views: 768
Last post April 11, 2023 @244.79
by Icey!
Game Dev PSA: Unity Just Shot Itself in the Foot Again.

Started by plantovisionBoard ✎ ∙ Art Crafting

Replies: 14
Views: 795
Last post September 29, 2023 @4.75
by ThunderPerfectWitchcraft

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021, Simple Machines | Terms and Policies Forum Guide | Rules | RSS | WAP2


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi