Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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 AtomicMarine · Jan 20, 2011 at 04:25 PM · iosiphonepause

How do I pause and unpause my game on the iPhone?

How do I pause my scene in Unity IOS like what method would I use to get this to happen?

I need the help on how to pause just one scene and have that scene paused for a certain amount of time

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
4
Best Answer

Answer by Jessy · Jan 20, 2011 at 04:35 PM

There are an infinite number of custom methods you can employ, but the easiest is setting Time.timeScale to a very low value. This is not an iOS-specific question at all, so you can easily find information about it.

http://answers.unity3d.com/questions/2393/freeze-game-using-time-timescale-0-wait-3-secs-and-resume-play-automatically

Personally, I implement event handlers in all my scripts that need to have some pause/unpause functionality. When those events happen, I stop or resume behavior as desired.

Comment
Add comment · Show 4 · 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 AtomicMarine · Jan 20, 2011 at 04:40 PM 0
Share

I need it to pause for a certain amount of seconds... so Time Scale is hurting that a bit

avatar image Thom Denick · Jan 20, 2011 at 04:47 PM 0
Share

Hi Do$$anonymous$$ic, As Jessy suggested, ins$$anonymous$$d of using TimeScale, you can manually create methods that stop your object's movement on demand. Also, you can use Coroutines to delay the amount of time you want. Or use http://unity3d.com/support/documentation/ScriptReference/Time-realtimeSinceStartup.html

avatar image Jessy · Jan 20, 2011 at 05:23 PM 0
Share

I edited the answer. I thought WaitForSeconds would be helpful to you, but didn't know that was dependent on timeScale. Shows how much I use timeScale. :-P

avatar image AtomicMarine · Jan 20, 2011 at 09:26 PM 0
Share

Thanks All got it working using the WaitForSeconds :) Thanks Jessy

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

No one has followed this question yet.

Related Questions

Can i still make iPhone Games without a IOS license ? 1 Answer

Unity iOS sdk question 1 Answer

How to Use Activity Indicator in Unity3d 1 Answer

AC-130 Game help 1 Answer

A node in a childnode? 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