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 Gamer323 · Nov 12, 2012 at 09:37 AM · javascriptdictionaryusewords

Details of javascript words.

Hi, I'm new to unity 3d and I was just wondering if anyone know where kinda like a dictionary for javascript could be found. With a description of the word and its use. Any pointers as to where I could find such info. It would grandly be appreciated. Thank you for your time.

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

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by AlucardJay · Nov 12, 2012 at 09:59 AM

What you are looking for is the Unity Scripting Reference : http://docs.unity3d.com/Documentation/ScriptReference/index.html

Use the search box in the top-left corner.

For example, search transform , then click on the first result : http://docs.unity3d.com/Documentation/ScriptReference/Transform.html

All of the variables and functions associated with that command are there. Click on position, and the description is there.

Lets try another : rigidbody : http://docs.unity3d.com/Documentation/ScriptReference/Rigidbody.html

click on velocity, and the description and an example is shown.

Another very useful one is raycast , this time click on Physics.Raycast : http://docs.unity3d.com/Documentation/ScriptReference/Physics.Raycast.html

The Unity Scripting Reference is very handy for checking what should be included in a command, e.g. with the RayCast link :

 static function Raycast (origin : Vector3, direction : Vector3, distance : float = Mathf.Infinity, layerMask : int = kDefaultRaycastLayers) : boolean 

this is basically saying :

 if ( Physics.Raycast( start position as Vector3, Direction as Vector3, Distance as Float, Layermask [click on layermask for more info] ) ) : Returns a boolean (true or false)

See how you go =]

Comment
Add comment · Show 3 · 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 Gamer323 · Nov 13, 2012 at 04:28 AM 0
Share

I was more looking as in a list of all the words cause i do not know more then half of them i think. So I wouldn't really know what word to look for.

But thank you very much still a very useful pointer.

avatar image AlucardJay · Nov 13, 2012 at 06:08 AM 0
Share

I know what you mean. When a person doesn't even know a command exists it is hard, and you could be doing something the long way!

The Unity Scripting Reference can still help finding some of those commands. e.g. type Vector3 into the search box

there is the first result : http://docs.unity3d.com/Documentation/ScriptReference/30_search.html?q=Vector3

this list shows some combinations of Vector3 with other commands (like Vector3.forward , Vector3.Lerp , Vector3.magnitude , Vector3.normalized )

then click on the first result : http://docs.unity3d.com/Documentation/ScriptReference/Vector3.html

this shows all the variables that are a part of Vector3. Click on one for a description and an example.

I really don't think there is just a list of all commands, the API (Script Reference) is what everyone uses. I even did a search for you, and the only results were the same as the info I have provided : http://answers.unity3d.com/questions/51522/java-script-command-list.html : http://answers.unity3d.com/questions/23759/list-of-pre-defined-functions-like-update-and-ontr.html : http://forum.unity3d.com/threads/75739-Where-can-I-find-a-list-of-unityObject-methods-%28functions%29

Another way to learn about the existance of commands is just to read the questions on this 'site. For example, I didn't know Quaternion.LookRotation existed until reading a question.

But it is there in the API ! : http://docs.unity3d.com/Documentation/ScriptReference/Quaternion.html

That is the best advice I can give. If you have a problem or think there is a better way to write your code (a command you don't know exists), then ask a question, I'm sure someone here could help. Happy Coding =]

avatar image Gamer323 · Nov 14, 2012 at 04:08 AM 0
Share

When I've done the search myself before I got the same results. Reason why asked the question so i guess we were both on the same page there. :P Thanks for doing the search as well. :)

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

10 People are following this question.

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

Related Questions

Iterate through Generic Dictionary? 3 Answers

dictionary, random element (js) 1 Answer

Optimising dictionary load (in Javascript) 2 Answers

Javascript TextAsset to Generic Dictionary 1 Answer

dictionary of words (as a key) and fbx files (as a value) 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