Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by kristian97 · Feb 28, 2012 at 01:18 AM · c#programming

Programming Language

Hi i want to be a programmer for unity and specially in fps games. I have read trough some unity C# tutorials. But that was not too much. I want now to know what is the good sides of C# what is the language good in. Example is it good to script with c# when i go to make a weapon and a soldier shooting or is C# only good at menus. And i want to know if i want to learn C# to an advanced level do i need to search for UNITY C# tutorials which is not easy to get in internet or can i just search for C# tutorials and is that what they use in unity.

Thanks

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

4 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by DaveA · Feb 28, 2012 at 02:06 AM

You can use C# for everything, and probably should. Any .NET tutorials will help. I'm at MSDN all the time. Note that it's not exactly the same, but close enough 99% of the time.

Note that all the code examples in the manuals come in all languages (use the drop-down), and there are many scripts in the Unity script wiki which may help you.

The reason to use C# all the time, if you dare, is because if you want to mix it with Javascript, there are complications. C# is stricter, which means somewhat uglier code sometimes, but it's more solid, a better programming practice in general. There are a few things you can only do in C#, and only one or two you can only do in Javascript, but those deal with convenience which can sometimes lead to sloppy coding, IMHO.

That said, I still use JS a lot for simple things.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Owen-Reynolds · Feb 28, 2012 at 04:11 AM

For the last part, just general C# programming is fine (or not even C# -- learn to program in any language.) Coding Unity is maybe 85% general programming tricks, and 15% knowing Unity. For example, save files work the exact, 100% same way in Unity as in regular C#.

Or, arrays are super useful. Unity has a few examples of using them. A general programming class, or website, can go over dozens of array examples, using them for a grid, or inventory, all the common errors, when to use a list instead... . And it all works the same in Unity.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Stradigos · Feb 28, 2012 at 06:42 AM

I learned a lot about C# through XNA. It may be a good place to start and then come back to Unity. This is the book I was trained on. Check it out! Book

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by kristian97 · Feb 28, 2012 at 07:03 PM

Aha ok good thanks for the help but if i want to script a fps game cant i do all the ingame job with the C# or do i need to learn myself C# and Unity Script.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Owen-Reynolds · Feb 28, 2012 at 10:48 PM 0
Share

See DaveA's answer. But, no matter what language you use, you'll have to learn Unity stuff like Rotate(0,45,0), transform.forward, what the rigidbody settings do... .

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

Distribute terrain in zones 3 Answers

I'm having troubles using a Capsule Cast 2 Answers

C# Array index is out of range but index is zero 1 Answer

Object Oriented Programming and Interactble Objects 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges