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 dasca_thea · Oct 27, 2011 at 11:05 AM · androidios

Web Player to iOS?

Hi community

I am quite new to game developement and even programing. I have been working with unity with a misunderstanding that i could later on export it to any platform.(m mostly a video editor).

So, with that stupidity in mind, I finally created a chess game with java script. and now when i build into android there is 600+ error. mostly about operator being on the right side of a variable.

How do i correct this? and what language should i use for android? what abt iOS?

Please help me... 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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by save · Oct 27, 2011 at 11:24 AM

It doesn't matter what language you use, it will compile towards the platform standard. Although you should use #pragma strict at the top of every script you ever write that should compile with the rest of your app (Editor-scripts excluded).

The different platforms have different inputs for instance, so you have to script towards their specific functionality.

A good place to start is the Unity Manual. There you can include or exclude information which is specific for PC/Mac, iPhone and Android.

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 dasca_thea · Oct 28, 2011 at 02:54 AM 0
Share

Hi i will need more of your help. after i go through the error there are only 2 types of error. 1 is my variable placement. This is my line that is error:

if (Pos$$anonymous$$ov[i]>=0 && Pos$$anonymous$$ov[i]<=63){

this is the log:

Assets/PlayerScript.js(95,14): BCE0051: Operator '>=' cannot be used with a left hand side of type 'Object' and a right hand side of type 'int'.

what does this mean? how do i correct this?

The second problem is i cant seem to call for a class from other local scipt.

How do i correct these problem. its like i get the same line for 600 times thats only about "+" "-" "*" "/" placement problem.. I think there must be a trick.

Regards, Sothea.

avatar image save · Oct 28, 2011 at 09:12 AM 0
Share

How have you declared cordin and Pos$$anonymous$$ov and what is held by them? You must set the type when you declare the variable, for instance:

 var Pos$$anonymous$$ov : float[];

Always put #pragma strict at the top of every script when developing towards iOS or Android. They can't handle dynamic scripting.

avatar image
0

Answer by dasca_thea · Oct 28, 2011 at 03:22 AM

Hi, I have been going around the net with no luck. I'm going to ask for more of your help. after going through all the script, i see i have 2 problems. one is with the operator and one with not being able to call for class in other scripts.

first thing first, here is my script:

n=(PlayerScript.cordin[1]-o)/8;

And i got this error:

Assets/White piece/Touk.js(103,26): BCE0051: Operator '-' cannot be used with a left hand side of type 'Object' and a right hand side of type 'int'.

what do i do with this? And i think i know what i mean with my second problem.. m so desperate...

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

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Is it possible to send SMS from an action in Unity? (Mobile iOS or Android) 1 Answer

Facebook Platform Policies and Promotions Policies 0 Answers

Empty game objects - too much? 3 Answers

Making an Input Listener Via Touch 1 Answer

Movie texture on mobiles! 3 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