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 valax · Aug 22, 2012 at 06:26 PM · errormenu

Options menu errors

Hey guys!

I just typed this up earlier but it's giving me errors, I've tried following what it says (or at least what I think it's saying) in the console but to no luck.

It didn't format properly with the built in bit so here is a link: http://pastebin.com/WJATuAQ7

The errors are:

*Directory/Options.js(14,66): BCE0044: expecting ), found '{'.

*Directory/Options.js(20,66): BCE0044: expecting ), found '{'.

*Directory/Options.js(23,13): BCE0044: expecting EOF, found '{'.

Thanks in advance!

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 Piflik · Aug 22, 2012 at 07:08 PM

You are missing one closing bracket in every if statement. (just like your error message tells you)

 if (GUI.Button (Rect (330, 70, 100, 20, "Full Size"))

should be

 if (GUI.Button (Rect (330, 70, 100, 20, "Full Size")))
Comment
Add comment · Show 4 · 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 valax · Aug 22, 2012 at 07:13 PM 0
Share

I tried doing that before but it says this about each if statement:

BCE0024: The type 'UnityEngine.Rect' does not have a visible constructor that matches the argument list '(int, int, int, int, String'

avatar image Piflik · Aug 22, 2012 at 07:20 PM 0
Share

Oh, right...because I didn't look properly, I just counted the brackets. Really it should be:

 if (GUI.Button (Rect (330, 70, 100, 20), "Full Size"))
avatar image valax · Aug 23, 2012 at 12:22 PM 0
Share

yes but then I'm back to square one :/

avatar image Piflik · Aug 25, 2012 at 08:41 PM 0
Share

Did you try it? You need on braccket to close the Rect, one to close the Button and one to close the If Statement. In your first code, you are missing the one for the Rect.

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

8 People are following this question.

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

Related Questions

Set Graphics Emulation to No Emulation as Default? 2 Answers

GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced) 0 Answers

Is SetActive doesn't working or the button dont work? [Solved] 1 Answer

Whenever I try and run a game in a 4:3 aspect ratio in full screen it defaults to my laptop's native resolution 1 Answer

HighScore analytics 0 Answers


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