Search Unity

Time Control and Pause Kit (inc. Bullet Time, Freeze, Fast Motion, etc) [RELEASED]

Discussion in 'Assets and Asset Store' started by SketchWork, Jun 28, 2013.

  1. gekidoslair

    gekidoslair

    Joined:
    Sep 7, 2012
    Posts:
    95
    Used the approach I found here : http://answers.unity3d.com/questions/351049/navmesh-agent-pause.html

    with better results - pauses the navmeshagent instantly & resumes

    Code (CSharp):
    1. void pause() {
    2.      lastAgentVelocity = agent.velocity;
    3.      lastAgentPath = agent.path;      
    4.      lastAgentDestination = agent.destination;
    5.      agent.velocity = Vector3.zero;
    6.      agent.ResetPath();
    7. }
    8.        
    9. void resume() {
    10.      if (agent.destination == lastAgentDestination) {
    11.          agent.SetPath(lastAgentPath);
    12.      }
    13.      else {
    14.          agent.SetDestination(lastAgentDestination);
    15.      }
    16.      agent.velocity = lastAgentVelocity;
    17. }
    18.  
     
  2. SketchWork

    SketchWork

    Joined:
    Jul 6, 2012
    Posts:
    214
    @gekidoslair Looks good, I'll add that to the next version. I'll also update the #defines too. thanks for the feedback.

    Justin
     
  3. rusaila

    rusaila

    Joined:
    Nov 1, 2016
    Posts:
    1
    Hi,
    I just downloaded this and I'm not sure how to use it in my project. In the documentation you said that we should do the following:
    4) Add a simple GUI.Button script to trigger a pause.
    5) Add a link in the GUI script to the TimeGlobalController prefab we added earlier.
    6) Call TimeGlobalController.PauseGroupTime().

    I'm not a programmer really and i'm not sure what code we should be using here?
    I honestly thought this will be easier to use that it seems to be.
     
  4. SketchWork

    SketchWork

    Joined:
    Jul 6, 2012
    Posts:
    214
    @rusaila Hi there. The best thing to do is to take a look at the samples included in the package. It is pretty easy to integrate with any existing or new projects.
     
  5. The_Domaginarium

    The_Domaginarium

    Joined:
    Dec 11, 2012
    Posts:
    20
    I am not sure if you had seen this, but I noticed cloth goes crazy when you pause. However, if I manually set the timescale to 0 this problem doesn't happen.

    Is there any setting I could use for the clothing so that it doesn't happen?

    Thanks

     
  6. SketchWork

    SketchWork

    Joined:
    Jul 6, 2012
    Posts:
    214
    Hey there,

    That's a strange one that's not been reported before. I'll take a look for you.

    Justin
     
  7. Vern_Shurtz

    Vern_Shurtz

    Joined:
    Mar 6, 2009
    Posts:
    264
    There has not been an update in awhile. Is this asset still supported or work with the latest version of Unity?

    Thanks.
     
  8. Lab618

    Lab618

    Joined:
    Jan 12, 2015
    Posts:
    31
    Is this asset current and being updated? Asset store lists it as submitted using Unity 3.5.7 and the latest version is two years old.

    Just wanted to check as I'm after a time control asset and don't want to end up with something old and unsupported. Chronos looks good but is a bit pricey for what I need.
     
  9. B0b

    B0b

    Joined:
    Sep 26, 2014
    Posts:
    5
    Same question here does this asset work with the latest version of unity 2017 ?
     
  10. SketchWork

    SketchWork

    Joined:
    Jul 6, 2012
    Posts:
    214
    Hi guys, Yes still working on this asset and will be doing updates to all our assets soon.
     
  11. BurningHeroG

    BurningHeroG

    Joined:
    Aug 18, 2013
    Posts:
    23
    I am interested in purchasing this asset. I would like to know if it works with Unity 2017?
     
  12. Oshigawa

    Oshigawa

    Joined:
    Jan 26, 2016
    Posts:
    278
    @SketchWork

    Hello, i'm interested in buying, does this work with latest Unity and Playmaker? I see the package is quite old.
     
  13. SketchWork

    SketchWork

    Joined:
    Jul 6, 2012
    Posts:
    214
    This asset is still alive and I'm currently updating all the assets to bring them in line with the current Unity versions.
     
  14. Oshigawa

    Oshigawa

    Joined:
    Jan 26, 2016
    Posts:
    278
    Cool, let us know when it's done.
     
unityunity