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 werseburg · Jul 23, 2013 at 12:20 PM · c#javascriptmonodevelopcompiler

My compiler Monodevelop doesn't build.

I have no idea what to do, but whenever I want to compile a script the MonoDevelop does not compile. I know the code I used was correct and I can do nothing about it, it simply says that I lack ??? (nothing)


 #pragma strict
 
 function Start () {
 
 print(“Hello Console!”);
 
 }



I get one error, and it is blank, the script wont compile, what could cause this? It applies both to C# and to JS.

Comment
Add comment · Show 8
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 Dimling · Jul 23, 2013 at 12:59 PM 0
Share

how about this. Does this work?

 #pragma strict  
 
 function Start(){
     print("Hello Console!");
 }

just copy and paste, pretty sure its just those signs " " that are making the error

avatar image amphoterik · Jul 23, 2013 at 01:00 PM 0
Share

What do you mean by "compile"? What exactly are you trying to do?

avatar image werseburg · Jul 23, 2013 at 01:08 PM 0
Share

I am trying to build it

avatar image amphoterik · Jul 23, 2013 at 01:24 PM 0
Share

Right... what EXACTLY are you trying to do?

avatar image Jamora · Jul 23, 2013 at 01:39 PM 0
Share

The quotation marks look strange. Have you tried the code Dimling offers?

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Dimling · Jul 23, 2013 at 02:05 PM

I'm not sure what you want to archive with this script but I'm going to try my best to guide you to the result you want.

First of all, this script won't produce any output to the console if you are not adding the scripts to any objects in your scene. So to get some output you can create a empty "game object", or maybe a cube if you like, to the scene and drag the script on to the object.

When you now play the "game" you should be able to see the text "Hello Console" in the console. Double-clicking an error in the Status Bar or choosing Window->Console will bring up the Console.

But still i think those quotation looks a bit weird, and you should try to change them as I earlier suggested.

Good luck!

Comment
Add comment · Show 8 · 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 werseburg · Jul 23, 2013 at 02:37 PM 0
Share

The problem is the game wont start if there are any compiler errors I know how to attach a script but something is wrong with it. I have no idea where the problem is :/

avatar image amphoterik · Jul 23, 2013 at 02:41 PM 0
Share

have you tried copy and pasting the code dimling offered? What are you errors? We can't help you unless you at least try to give us some information to go on.

avatar image werseburg · Jul 23, 2013 at 02:50 PM 0
Share

Namespace 'UnityEditor' not found, maybe you forgot to add an assembly reference? (BCE0021)

I googled it, but it didn't help me much, it didn't pop up in the error log but in the right corner of $$anonymous$$onoDevelop :/

avatar image amphoterik · Jul 23, 2013 at 02:52 PM 0
Share

post your script.

avatar image werseburg · Jul 23, 2013 at 02:55 PM 0
Share

I used the code that dimmling gave me, it still does not work

Show more comments

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

20 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity 4.3 Monodevelop autocompletion not working for javascript names and enums 0 Answers

JumpSpriteManager error 1 Answer

Compiler error FPSplayer script 2 Answers

MonoDevelop 4.0.1 code completion doesn't work 2 Answers

How to code a script that points you to the previous scene (JS) 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