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 Hayloe · Feb 08, 2013 at 08:05 PM · bugglitchscrollingfast

Things moving too fast only after Application.Load

Sometime's when my game switches scene's, for example, from the main menu to a worldmap things will be moving in hyper-drive, its as if Time.timeScale was notched up, but I have checked and it remains at 1. this is very noticeable because I have textures scrolling across the background, I'm designing a 2D game using Orthello.

Here is the relevant code in my scrolling script. I'm beginning to think this this is a bug in 3.5.5 and I am as we speak upgrading to 3.5.7 hoping that will fix the issue, but somewhere deep down I doubt it.

 void Start () {
     translate = new Vector3(-scrollSpeed * Time.deltaTime , 0, 0);
 }

 void Update () {
     if (startToScrollAt < Time.timeSinceLevelLoad)
     Scroll ();
 }

 void Scroll () {
     this.transform.Translate (translate);
 }
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 Loius · Feb 08, 2013 at 08:16 PM 0
Share

Could you debug scrollSpeed as well, just to make sure that's not accidentally getting changed somewhere? It sounds like that might be reverting to a default of some kind.

avatar image robertbu · Feb 08, 2013 at 08:30 PM 0
Share

Is the issue only with assets preserved across the new scene load? Could you be getting one or more large deltaTime slices during the switch? That is for the existing assets time may still be running, but Unity is busy. It is possible that sooner or later those assets will get either a large deltaTime, or several smaller ones to bring time up to date?

avatar image Hayloe · Feb 08, 2013 at 08:51 PM 0
Share

thanks robertbu, that fixed it. I changed Scroll() to this so it gets a new time.deltaTime every update

 void Scroll () {
     this.transform.Translate (new Vector3(-scrollSpeed * Time.deltaTime , 0, 0));
 }

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

Weird double-tap bug when I use standart controller (Android) 0 Answers

Why is unity lagging so much? 1 Answer

Unity Editor's Inspector Glitch while using OnGUI function 0 Answers

Weird Placement Glitch 0 Answers

Tartan plaid flannel background in editor while scrolling through zoom levels 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