Beginning C# with Unity (2023 Edition) - Setting Up Your Code Editor with Unity

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 มี.ค. 2023
  • When writing code, you are going to be using a code editor. In order to be successful, your code editor needs to be properly configured to work with Unity. This episode walks you through how to configure you editor on both Windows and macOS.
    This episode is sponsored by www.kodeco.com.
    Visual Studio Code: code.visualstudio.com/
    .net: dotnet.microsoft.com/en-us/do...
    Mono Project: www.mono-project.com/
    Note: Unity is required. You can download the free version from Unity3d.com. This course has been developed using just the personal version.
    Kodeco aims to be the best online learning platform for mobile developers at every step of their career, all the way from building your first app, to becoming a respected expert in your field.
    Previously known as raywenderlich.com, our products have made a difference in the lives of thousands of developers across the world, helping them to get their first job as a mobile developer, grow their careers as part of a dev team, or create the app of their dreams.
    About Unity (from Wikipedia):
    Unity is a cross-platform game engine developed by Unity Technologies and used to develop video games for PC, consoles, mobile devices and websites. First announced only for Mac OS, at Apple’s Worldwide Developers Conference in 2005, it has since been extended to target more than fifteen platforms.
    It is now the default software development kit (SDK) for the Wii U.]Unity Pro is available for a fee and Unity Personal has no fee; it is available for any use to individuals or companies with less than US$100,000 of annual gross revenue.
    On March 3, 2015 with the release of Unity 5.0, Unity Technologies made the complete engine available for free including all features, less source code and support.
    Unity is noted for an ability to target games to multiple platforms.Five versions of Unity have been released. In 2006 at the 2006 WWDC trade show, Apple, Inc. named Unity as the runner-up for its Best Use of Mac OS X Graphics category.
    About C#:
    C# (pronounced as see sharp) is a multi-paradigm programming language encompassing strong typing, imperative, declarative, functional, generic, object-oriented (class-based), and component-oriented programming disciplines.
    It was developed by Microsoft within its .NET initiative and later approved as a standard by Ecma (ECMA-334) and ISO (ISO/IEC 23270:2006). C# is one of the programming languages designed for the Common Language Infrastructure.
    C# is intended to be a simple, modern, general-purpose, object-oriented programming language. Its development team is led by Anders Hejlsberg. The most recent version is C# 5.0, which was released on August 15, 2012.
  • เกม

ความคิดเห็น • 59

  • @Isotonicdev
    @Isotonicdev 4 หลายเดือนก่อน +6

    I really think you should've covered this in the beginning as, I think, many people would've downloaded visual studio when downloading the unity engine.
    but this still was helpful for me!

  • @Justin-cx8lv
    @Justin-cx8lv ปีที่แล้ว +21

    I subscribed, liked and leaving a comment to let you know you are amazing. Thank you so very much for allowing others like myself to go after a dream of learning code. Not only are you providing a easy step by step of understanding and free lessons, you are an amazing teacher. I could go on and on about my life story of trying to build something but i'll save the details. Can not say thank you enough. I truly hope you continue this.

    • @VegetarianZombie
      @VegetarianZombie  ปีที่แล้ว +8

      Hi Justin -Thanks for the nice words! Welcome to the channel and welcome to programming! Just keep in mind that learning this stuff takes time and can be frustrating. While working through the weeds, keep your game in mind because code ultimately is a bridge, not a destination :) All the best!

  • @Bakamatsu-GojiFanArchive
    @Bakamatsu-GojiFanArchive ปีที่แล้ว +1

    I just started watching your tutorials today. They're very well put together and I'm eager to learn more from you!

  • @Cabazorro0
    @Cabazorro0 ปีที่แล้ว +3

    Thank you so much! I'm following your old Beginning C# with Unity video series and I was struggling seeing I had to check for errors in the unity console and no options when writing Debug. for example. Now it's all working. Cheers.

  • @alfie.and.science
    @alfie.and.science 11 หลายเดือนก่อน +1

    This is by far the best unity C# tutorial series I've EVER seen. Thanks so much

  • @Alex01xD
    @Alex01xD ปีที่แล้ว +4

    Great idea to do this! I struggled a while on my own with this while following the 2016 tutorials. 😁

  • @mathematics1731
    @mathematics1731 5 หลายเดือนก่อน

    love your work

  • @UnrealCraft
    @UnrealCraft ปีที่แล้ว +3

    Really enjoying the tutorials btw. I hope you find the time to continue with the 2023 version of them. I enjoy the method of your teaching.

    • @VegetarianZombie
      @VegetarianZombie  ปีที่แล้ว +4

      Thanks so much - this week was a challenging week to produce content but you can expect more next week for sure.

    • @fredianafiona8961
      @fredianafiona8961 ปีที่แล้ว +3

      @@VegetarianZombie Super excited for your next C# content!

  • @KM_7758
    @KM_7758 11 หลายเดือนก่อน

    This is a very good and helpful guide. I just start learning today and its my dream to make and develop games :)

  • @DawsonGlasser
    @DawsonGlasser 6 หลายเดือนก่อน

    thank you for making good tutorials

  • @ayouboubliha5172
    @ayouboubliha5172 ปีที่แล้ว

    Thank you So much

  • @ashhadadnan5412
    @ashhadadnan5412 9 หลายเดือนก่อน

    Thank you

  • @IIIQZAIII
    @IIIQZAIII 7 หลายเดือนก่อน

    I like the background music

  • @m.r.480
    @m.r.480 11 หลายเดือนก่อน +3

    I went through all the steps, but my code still doesn't recognize most of it windows 10

  • @SKEEECH
    @SKEEECH ปีที่แล้ว +3

    I followed along and downloaded unity, and visual studio code community 2022. but unlike the video my visual studio code application does not have that extensions tab on the left. i tried using the extensions tab on top but the extension C# does not come up in the search results.

    • @idontcare8521v2
      @idontcare8521v2 ปีที่แล้ว

      oh try right clicking on the left bar if u havent ticked the extensions then it wont show hope i helped hehe

  • @gitarmats
    @gitarmats 11 หลายเดือนก่อน

    Is this step just for Mac? I have been using another tutorial for a bit on PC and I already get the highlights of errors, and predictions in the drop down menu as I type.

  • @sirrender1010
    @sirrender1010 หลายเดือนก่อน

    Hello! I don't know if you're still responding to comments, but at 6:50 when you're about to install the addon, that addon doesn't exist for me? Any solutions?

  • @idontcare8521v2
    @idontcare8521v2 ปีที่แล้ว +1

    i downloaded mono already but still it keeps telling me to download it again
    do you have a fix for this?

  • @MyrmidonGaming101
    @MyrmidonGaming101 หลายเดือนก่อน

    Hello friend.
    Using your settings. I'm getting issues and errors with the VS Code. I was hoping you could assist me.
    In VS Code, when I try to Run or Run&Debug my code, I get errors. It might say 'script' is not a command or not recognised (or something similar). Or that it can not find the project I'm trying to run. I change settings to remove one error and I stumble across another. I have tried so many videos, done hundreds of googling and I cannot get any further.
    If I send a donation, willy you be very kindly willing to assist me. TIA

  • @Manciek_
    @Manciek_ ปีที่แล้ว +1

    I have a question. If i'm trying to make an isometric view game in 2D Unity. Then the textures should be of the same size? Like lets say the building(size: 500 px * 500 px) and a tree(size the same, but not that much is used, like u create a blank page of this size and a tree is smaller than whole page so the rest is un used) does it make any sense?

    • @VegetarianZombie
      @VegetarianZombie  ปีที่แล้ว +2

      I haven't worked with texture atlases in awhile, but all the atlases in my projects contained textures of different sizes. You may get a performance boost if you use the same sized textures, but I'm guessing not enough to really warrant that hassle. Again, it's been awhile. Your best bet is ask this on the Unity dev forums. Good luck!

  • @AloneNoLife
    @AloneNoLife หลายเดือนก่อน

    it wont seem to work for me for visual studio and whenever i use community it wont use IntelliSense

  • @Zandigo
    @Zandigo ปีที่แล้ว +1

    Will there be any radiation island videos anymore? Or any other similar games like sons of forest?

    • @VegetarianZombie
      @VegetarianZombie  ปีที่แล้ว +1

      At some point - yes - I just purchased a new rig

  • @Drunk_Sniper_18
    @Drunk_Sniper_18 ปีที่แล้ว

    Two questions.
    1. I already have unity downloaded so how to I get to this screen at 4:04?
    2. If i'm on windows does net and mono not apply for me? because I already have the microsoft c# installed in Visual Studio and im not getting anything

    • @VegetarianZombie
      @VegetarianZombie  ปีที่แล้ว

      You can access these window from selecting Tools -> Get Tools from the VS menu bar.
      Once you install the Unity component you should be good to go. You won’t need to install anything else. Good luck!

  • @ruthlessinteractive107
    @ruthlessinteractive107 ปีที่แล้ว

    Is the omnisharp use modern net step necessary on windows running PC'S? And why is this step important.

    • @VegetarianZombie
      @VegetarianZombie  ปีที่แล้ว

      If you are using windows, just install Visual Studio Community. You will just just need to install Unity’s additional plug-in but that’s it.

  • @Alan-yv6ip
    @Alan-yv6ip 10 หลายเดือนก่อน +1

    I'm using windows OS and followed your guide, but neither code complition or documentation are working . What do I do?

    • @WIKUS70
      @WIKUS70 8 หลายเดือนก่อน

      Same been looking for an in depth guide found it here and of course its for mac and nothing works as described...

  • @jordanfanning5625
    @jordanfanning5625 ปีที่แล้ว

    Hello, I'm hoping you might be able to help. On Windows as a preface. I was using the code completion following along with your first few videos here, it took some messing around with but it began working just fine. I finished the recent videos so far, opened up my own project and now the code completion is no longer working. Any clue?

    • @VegetarianZombie
      @VegetarianZombie  ปีที่แล้ว +2

      What code editor are you using? On Windows, things should work out of the box unless there's a configuration error.

    • @jordanfanning5625
      @jordanfanning5625 ปีที่แล้ว +1

      @@VegetarianZombie I'm using Visual Studio Code

    • @VegetarianZombie
      @VegetarianZombie  ปีที่แล้ว +2

      If you are on Windows, I highly suggest you use Visual Studio community instead of Visual Studio Code.

    • @jordanfanning5625
      @jordanfanning5625 ปีที่แล้ว +1

      @@VegetarianZombie Okay perfect, this works! Thanks again for all your help, I'm really excited for the next video release!

  • @user-cz1br2nb4b
    @user-cz1br2nb4b 9 หลายเดือนก่อน +8

    Don't get me wrong, this series is amazing so far, but I can't really understand why every programming lesson ever developed begins by explaining how to show text and do calculations. That is great and I know it will be useful, but I have a calculator and a word processor already. It would be nice to see these tools being introduced a little bit later on, when a need for them arises, and maybe to begin by learning... How to import sprites, how to change some graphical display, really anything that you can't do with more simple tools. I understand that there's something foundational about these concepts, but it feels like learning how to draw by first visiting a pencil factory. Anyway, this series is very cool and easy to follow otherwise

    • @Siggney1
      @Siggney1 7 หลายเดือนก่อน +3

      i think it's to get you into the flow of how the code writes and words things, so people dont get flooded with triganometry and deltatime and give up cause theyre overloaded

    • @BaheejHassan
      @BaheejHassan 6 หลายเดือนก่อน

      @@Siggney1 Point!

  • @shrekscousin1389
    @shrekscousin1389 ปีที่แล้ว +1

    you should play 7 days to die modded, I think that you'll enjoy it : )

  • @CityRoastGames
    @CityRoastGames ปีที่แล้ว

    I assume everything from the MACOS and on just needs to be done on MACOS?

    • @idontcare8521v2
      @idontcare8521v2 ปีที่แล้ว +1

      no it can be done on windows too. people just use macOS for coding alot, like alot

  • @zosialulowska6586
    @zosialulowska6586 4 หลายเดือนก่อน

    If my game ever works out, this course is why "Perspective" exists ♥

  • @ViktorLoR_Mainu
    @ViktorLoR_Mainu ปีที่แล้ว +1

    Alright. I... am not the most tech-savvy person out there, but hopefully someone finds this and is able to help me. At first, I just followowed your tutorial, but when Community didn't work properly (I'm on a Windows computer), I decided to try VS Code instead. No luck.
    To describe my issue: The IDE is not reporting any of the errors I make. I've tried simply writing 'debug.Log()', and the editor doesnt catch onto the fact that there is capitilisation or a semicolon missing. Hovering over the 'MonoBehaviour' text does not offer any information, although I know it should.
    I think the issue may be that I dont have some necessary Unity-related extension, so I'll try again, but this time download the editor directly after Unity itself. Oh, and the extensions that I do have are .NET tools, C# (the official one published by Microsoft), a C# Dev Kit, and some 'Intellicode', which I didn't even realize until now that I had.
    well bye

    • @ultima_exe
      @ultima_exe ปีที่แล้ว +6

      When you're within Unity, go to Edit --> Preferences --> External Tools, then pick your desired IDE in the External Script Editor (such as Microsoft Visual Studio 2022).
      After that, try reopening the script file from Unity and check to see if the editor is catching the errors. Let me know if that solves it.

    • @mathraww
      @mathraww 9 หลายเดือนก่อน

      @@ultima_exe it did it for me thx a lot u saved my night 😭

    • @zainkaiser
      @zainkaiser 8 หลายเดือนก่อน

      @@ultima_exe You my friend are a life saver!

    • @checkpoint2189
      @checkpoint2189 20 วันที่ผ่านมา

      @@ultima_exe Life saver thank you!

  • @shrekscousin1389
    @shrekscousin1389 ปีที่แล้ว +1

    What happened to the discord?

    • @VegetarianZombie
      @VegetarianZombie  ปีที่แล้ว +1

      I wasn't active in the Discord and it was starting to get spammers. I didn't want to leave it open and abandoned, so I removed all the channels as I didn't have the ability to formally close the server.

    • @mr.therizinosaurus8393
      @mr.therizinosaurus8393 ปีที่แล้ว +1

      @@VegetarianZombie That sucks, do you plan on making a new one?

    • @VegetarianZombie
      @VegetarianZombie  ปีที่แล้ว +1

      @@mr.therizinosaurus8393 I don't know - it depends where the channel goes from here. A properly run discord needs attention and that's a lot for me to give right now. I'd rather focus on content for now :)

  • @Pegseleven
    @Pegseleven 6 หลายเดือนก่อน

    Did this not work for anyone else? Done everything but mine still showing nothing. Cheers

    • @Pegseleven
      @Pegseleven 6 หลายเดือนก่อน

      Did a full reinstall of everything, when o download sdk and run it through tee mail to check it’s good it just keeps failing,
      Any help would be great!

    • @VegetarianZombie
      @VegetarianZombie  6 หลายเดือนก่อน

      Visual Studio Code on macOS is bonkers. Chances are, you have it correctly configured. Instead of opening a C# file directly in Unity, open VS Code first, then open the Unity directory in it. I'll update this video since it's a major pain point for people.

  • @soldatik3884
    @soldatik3884 20 วันที่ผ่านมา

    doesnt work