Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 Pong · Sep 03, 2011 at 07:12 AM · erroriosswitchbce0019

Some problems after switch the game for iOS mode

As I have build a game and almost finish. On Pc or Mac to play the game, there is nothing problem.

After I switch the platform into iOS, it suddenly occur so many error. Most of them is talking about "XXXX" is not a member of "UnityEngine.Component" or Unknown identifier."XXXX".

What's wrong about that and why the error occur after switch into iOS. Please help.

Comment
Add comment · Show 1
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 mohanrao164 · Sep 03, 2011 at 08:11 AM 0
Share

if i can know the errors i can help u

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Pong · Sep 03, 2011 at 08:28 AM

Here is one of the error: Assets/script/TimeAttackCounter.js(39,20):BCE0019:'CurHealth' is not a member of 'UnityEngine.Component'.

below is the script

var getHit = GameObject.Find("wai").GetComponent("WaiHealth"); if (getHit.CurHealth == 0)

 {

 startCounting = false;

 Save ();

 }
Comment
Add comment · Show 1 · 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 mohanrao164 · Sep 03, 2011 at 08:46 AM 0
Share

you are using the js script that is the problem they work fine in windows and mac when it come to ios u have to declare every thing. in the error u have not declare the curhealth.that is the problem i think. my sugesstion if u want to build in ios better go for c# scripts.u will not get any problem.

avatar image
0

Answer by Pong · Sep 03, 2011 at 12:59 PM

Omg....so how can I fix it and declare all of them?because i am finished the game already and it is not really possible to change them all in c# again. If I want to declare it out, what should I do on the script? Many thx...

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

2 People are following this question.

avatar image avatar image

Related Questions

Switch statement error 1 Answer

dynamic typing in Unity iOS: ...not a member of 'UnityEngine.Component' 2 Answers

Unity 4.3 with Xcode 5.0.2 build errors 1 Answer

"Terminated due to memory issue" but not memory issue 0 Answers

iOS FPS Kit 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