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 Cello · Mar 21, 2012 at 12:57 AM · monodevelopapi

A few basic MonoDevelop Questions

Hello,

These are some relatively simple questions I imagine, as i'm just jumping in to coding.

I've been watching a couple of basic Javascript/Unityscript videos and i'm noticing some differences between my MonoDevelop and the person making the video's MonoDevelop.

First off, I notice when making a new Javascript file and opening it up in MonoDev I get a #pragma strict at the top, while in the tutorials i'm watching there is no #pragma strict. I also noticed if I delete it and begin writing code it comes up with a long error, which I can just press OK and continue typing. Could someone help me to understand what #pragma strict is, and whether or not it's important? Here's an image of the error for reference:


Lastly, in the videos I notice that the teacher is getting help from Monodevelop while typing code by it suggesting variables/functions from the API, yet when I type it doesn't suggest code from the API. I've tried messing around with the settings but nothing helps to turn this on. How do I get this up and running in MonoDevelop? Here's an image of what i'm referring to just in case i'm not calling it by it's correct name:

I'm running the latest version of both Unity and MonoDevelop, if that information's needed.

Thanks!

Comment
Add comment · Show 2
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 syclamoth · Mar 21, 2012 at 01:00 AM 0
Share

The fact that you are running the latest version of Unity is the explanation for the

 #pragma strict

thing- 3.5 automatically adds that in script templates, which older versions did not. It makes the compiler more pedantic, forcing you to write better scripts. You should keep it, it stops you from making certain kinds of mistakes that are difficult to debug.

Also, that screenshot there doesn't look like either Unity or Javascript! $$anonymous$$ake sure that you have used 'Sync $$anonymous$$onodevelop Project' from the 'Assets' menu before you start- that sometimes fixes the autocomplete stuff.

avatar image Cello · Mar 21, 2012 at 01:19 AM 0
Share

Thanks so much for you fast response! Sync $$anonymous$$onodevelop Project definitely solved my issue with the autocomplete problem in $$anonymous$$onodevelop. With that it'll help me out with scripting a lot more.

I figured #pragma strict had something to do with a newer version, but wasn't aware that it helped me with writing better scripts. I'll be sure to keep it.

Thanks again!

0 Replies

· Add your reply
  • Sort: 

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

How to implement leaderboard with social api 1 Answer

Are there any good free Master Server APIs? 0 Answers

MonoDevelop Won't Compile. Unity 4.2 2 Answers

Big city on IOS 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