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
-2
Question by marcelowy13 · Mar 23, 2014 at 05:14 PM · errorconsole

BCE0044 unexpected char : 'h'.

hello. from a few hours I do not know what to do Here is part of my script

FixedUpdate function () {

h = Input.GetAxis ("Mouse X ') = hSpeed;

transform.Rotate = 0.h.0;

animator.SetFloat ('Speed​​', v);

animator.SetFloat ('Direction', h);

Comment
Add comment · Show 3
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 Destran · Mar 23, 2014 at 05:26 PM 1
Share

please format and give the error line. my guess would be the error is in "transform.Rotate = 0.h.0" and the line above it " h = Input.getaxis ("mouse X") = hSpeed" None of this looks correct,

avatar image Bunny83 · Mar 23, 2014 at 05:39 PM 0
Share

I don't believe this is a serious question. That looks like you took a script and just messed up random parts in every line.

Just as precaution: -1

avatar image marcelowy13 · Mar 23, 2014 at 06:11 PM 0
Share

I have this script out of here. This is a Polish video because I'm Pole https://www.youtube.com/watch?v=Rm02Qp6-ykE

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by SkaredCreations · Mar 23, 2014 at 05:54 PM

You inverted the function declaration, it must be:

 function FixedUpdate () {

And not the other way. This is the reason of the exception raised, then there is also the error notified by Destran: transform.Rotate is a function not a variable, and anyway the value you put there is not even a value, and other errors as well.

Here is how it should have been:

 function FixedUpdate () {
    var h : float = Input.GetAxis("Mouse X");
    transform.Rotate(0, h, 0);
    animator.SetFloat ("Speed", v);
    animator.SetFloat ("Direction", h);
 }

You shouldn't copy and paste random piece of code from an example to another without understanding what it does.

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 marcelowy13 · Mar 23, 2014 at 06:18 PM 0
Share

so it works but I have another problem A meta data file (. $$anonymous$$eth) exists but its asset 'Assets / Scripts / $$anonymous$$ovement.js' can not be found. When moving or deleting files outside of Unity, please ensure code That the Corresponding. $$anonymous$$eta file is moved or deleted along with it.

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

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

Related Questions

Editor Console window message no longer wraps... Help? Please? 1 Answer

Operator '*' cannot be used with a left hand side ....... 1 Answer

"Takes `2' arguments" 2 Answers

Override/remove an error from console? 1 Answer

4.3 - Errors jump to the wrong line numbers 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