Search Unity

HoTween not moving objects after reloading the scene from another scene.

Discussion in 'Editor & General Support' started by yuvraj.negi, Aug 1, 2014.

  1. yuvraj.negi

    yuvraj.negi

    Joined:
    May 17, 2013
    Posts:
    5
    Hi,
    I have this weird problem.

    I have 2 scenes. a. MainMenuScene, b. GameScene.

    I move to GameScene from my Main Menu Scene. HoTween works fine, and objects are moving.

    In my GameScene, I called Application.LoadLevel(Application.loadedLevel), again HoTween works fine, and objects are moving.

    Everything looks great.

    Now, I goto MainMenuScene. If I goto my GameScene, HoTween DOES NOT move my objects.
    Any reasons, why?
     
    Last edited: Aug 1, 2014
  2. yuvraj.negi

    yuvraj.negi

    Joined:
    May 17, 2013
    Posts:
    5
    its Fixed. Thanks
     
  3. BirdH

    BirdH

    Joined:
    Sep 17, 2014
    Posts:
    2
    How fixed it?
    That is my problem too :(
     
  4. yuvraj.negi

    yuvraj.negi

    Joined:
    May 17, 2013
    Posts:
    5
    To pause my game, I had set Time.timeScale = 0...

    You must reset it back to 1 for the object to start moving again.

    So, I would recommend that just before calling Application.LoadLevel("YourGameScene"), you must reset Time.timeScale = 1.
     
  5. yuvraj.negi

    yuvraj.negi

    Joined:
    May 17, 2013
    Posts:
    5
    Let me know if you are still facing any issues.
     
  6. BirdH

    BirdH

    Joined:
    Sep 17, 2014
    Posts:
    2
    Oh! It's fixed!!
    I really appreciate your help :) thank you so much!!
     
  7. yuvraj.negi

    yuvraj.negi

    Joined:
    May 17, 2013
    Posts:
    5
    You are welcome :)