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 · Mar 08, 2012 at 07:17 PM · c#programminglanguagekeywordsus

Programming Language

Hi after reading C# in 10 days and now are understanding the language and have a good experience i want to know what will i do now. if i want to use C# in unity do i just need to learn unity keyword and mix the keywords in the language, or do i need to learn the whole unityscript. or do i need to learn another language like javascript. im little afraid of begin learning the whole javascript because its a very big language. { Public class Thanks // Kristian. }

Comment
Add comment · Show 1
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 fafase · Mar 08, 2012 at 08:18 PM 0
Share

I have never learnt JS and I use it all the time. The way it is used in Unity is so intuitive you don't need to know about it. I wonder if the whole language is like it is in Unity...

3 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by mpavlinsky · Mar 08, 2012 at 07:30 PM

You can get by without learning any JavaScript at all and I would recommend that. You should just learn the classes in the Unity framework as you need them in my opinion. The script reference is your friend.

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 hijinxbassist · Mar 08, 2012 at 07:36 PM 0
Share

beat me to it, +1 : )

avatar image
1

Answer by hijinxbassist · Mar 08, 2012 at 07:35 PM

The way the code is used will be specific to the unity engine (it makes life tons easier than trying to put all these built in functions together yourself).

Unity reference page is where most of us unity coders live!
This is the place to start learning unity as it will give you examples of ways to use the code. It really isn't too tough as you can just look up the ref for what you are trying to accomplish.

http://unity3d.com/support/documentation/ScriptReference/

Hope this helps get you started 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 kristian97 · Mar 08, 2012 at 11:07 PM

Good ok so now i understand that there is some unity keywords i need to learn and know what they do and in the same time all i need to do is to mix both C# with the unity keywords to make a script. Example:


public string message = "welcome to the game"; //// this line is C#

void OnGui() // this too { GUILayout.Label(message); // but this is unity script.

Comment
Add comment · Show 2 · 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 fafase · Mar 09, 2012 at 07:51 AM 0
Share

The idea is that unity has prepared a whole set of classes and interfaces including the most general and useful functions and objects. What most Unity functions do , you could try to do it yourself, implementing your own functions, they just help you do everything faster. This is called Abstract Data Type (ADT), you don't know how it is done, you just know what it does and how to use it.

avatar image mpavlinsky · Mar 09, 2012 at 09:28 PM 0
Share

It's all C# really, you're just using classes that Unity has defined.

All the code you posted would work in a C# project in any other environment as long as you defined a class GUILayout with a public static function that took a string.

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

What type of field can store any type of class c# 1 Answer

Math Doesnt Make Sense 1 Answer

Getting android device's IP 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