This zone is sleeping right now! ZzzZZzzz

Better not disturb it! ~You go to the petrol station and buy a slushy instead, everything is cool!~

This area will open again in 000.beats!

(Learn about Swatch Time)

Some other zones are awake :^]


Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining?
a Summer day - @440.02
Activity rating: Four Stars Posts & Arts: 53/1k.beats Random | Recent Posts | Guild Recents
News: :happy: Open the all windows! Your mind needs storms and air! :happy: Guild Events: There are no events!

+  MelonLand Forum
|-+  World Building
| |-+  ☑︎ ∙ World & Game Materials
| | |-+  Unity Basics!


« previous next »
Pages: [1] Print Embed
Author Topic: Unity Basics!  (Read 5401 times)
cinni
Sr. Member ⚓︎
****
View Profile WWW


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

Artifacts:
First 1000 Members!OG! Joined 2021!
« on: a Spring night » Embed

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: a Spring night by cinni » Logged

Pages: [1] Print Embed 
« previous next »
 

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021 | Privacy Notice | Send Feedback | Supporters ♥ Forum Guide | Rules | RSS | WAP | Mobile


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
@000 MelonLand Zap! Want to Login or Join ? Forum Art Hub Chat Webring Editor Recent Edits Tenement Arcade Web Guides Graphics Catalogue Wiki Newsletters Image Stream
Melon's Sites TamaNotchi Textures PixelSea GifyPet MoMG Ozwomp Online Loom Videos Leaky Webring Melonking
Tools Melon Software ArtHub Embed Maker ML Passports
Outlinks Frutiger Aero Forum Onio Club m15o's Web Services 32Bit Cafe iMood Webrings Internet Phone Book HTML Energy Declarations Hackers & Designers
Minecraft: Online
Join: craft.melonking.net