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 Daylater · Sep 19, 2012 at 11:34 PM · editorinputcontrolissues

Gameplay issues when playing in Editor. Works fine in build.

Ok,

I'm having a really weird issue with my characters Jumping controls when playing the game in the editor. Normally the character jumps at a set height, but after I've been working in unity for while; opening/closing the programming, creating assets, adjusting prefabs etc. his jump controls go all wacky.

The character will start to jump at half height for a few button presses and then suddenly launch into the air with 10x the force he should. Then a few jumps will be normal and then BAM super jump... Sounds cool, but it's not. It's extremely frustrating. It's getting to the point that i can't test my game in the editor because of the inconsistency.

Normally I would assume this is a problem with my character controller and jump scripts, or something like that, except that when I build and run the game it works perfectly fine!

Is there some sort of degradation in the editor or known bug that would cause this type of issue? I've tried searching everywhere and can't find a single mention of anyone else having this issue. It's really becoming a problem as I can't properly test my game without making a full build.

For reference I have a pretty solid PC. Intel i7, Geforce GTX 275, 8G Ram, Windows 7 64bit. So I can't imagine it's hardware bottleneck, also the fact that when I first start unity there's no problem. It happens after the PC's been running for a couple hours, and Unity has been launched/closed a few times. Normal workflow stuff...

Any help or direction would be so greatly appreciated!

Comment
Add comment · Show 6
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 save · Sep 19, 2012 at 11:49 PM 0
Share

I've come to find that running the game in editor with Game-view set to maximized ($$anonymous$$aximize on Play) works a lot more fluidly and closer to a build. I don't know if it's a solution in your case but sometimes certain hickups do tend to impact the physics for instance. The Profiler is also good to run on an in-need basis as this also tend to give the Editor hickups. You'll notice great difference especially if you've forgot to use deltaTime/fixedDeltaTime on certain frame independent values.

It's really hard to tell if it could be anything else. Do you have any editor scripts that could interfere with jumping? Is there any other logic connected to the jump button other than to issue a jump for the character? Are you using deltaTime/fixedDeltaTime the right way?

avatar image Daylater · Sep 20, 2012 at 12:23 AM 0
Share

I always play with the game maximized, and I have tested not maximized as well to no avail.

When the player moves, his velocity is scaled by deltaTime before being passed off to the character controllers $$anonymous$$ove function. The jump script I'm using simply adds a vertical "force" value to the players velocity when the jump button is pressed.

movement is time based anyway, not frame based so execution speed shouldn't matter... (aka no i didn't forget to use deltaTime.)

Again, this ONLY occurs in the editor "play" mode, everything works fine when I build and run.

avatar image cowlinator · Sep 20, 2012 at 04:11 AM 0
Share

Did you click on another window? I've notice that clicking on another window (taking the focus from unity pauses the editor playback) while playing in the editor can occasionally have strange effects on unity.

Does the framerate suffer at all when the super jump happens? If some script or something is usurping control from the engine for a while, it can sometimes effect the physics.

You can try playin with the values in Time$$anonymous$$anager, see if that effects anything.

avatar image Daylater · Sep 20, 2012 at 05:23 AM 0
Share

Thanks for the suggestions, but none of that was the cause. No other windows open, or programs running for that matter. No frame rate drop, just inconsistent results with the jump.

Another weird aspect of it; I've been trying to capture video of the bug, but every time i run the screen capture software the game runs fine. I'm really at a loss =(

avatar image save · Sep 20, 2012 at 08:39 AM 0
Share

Could it be drivers or other software then, have you updated Direct X and the Nvidia drivers, Windows 7 SP1 and latest version of Unity?

Show more comments

0 Replies

· Add your reply
  • Sort: 

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

11 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

Related Questions

How to make camera position relative to a specific target. 1 Answer

Implementing Deceleration on a car? 0 Answers

Input Help! 1 Answer

Keyboard input not working 3 Answers

How change speed of scrollbar (ui) with mousewheel 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