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
1
Question by Exalia · Sep 12, 2013 at 11:23 AM · androidapplicationrestart gameanti aliasing

Restart your Application via Script

Hi, I'm creating an app that has the option to change Anti Aliasing at run time. Unfortunately Unity has trouble doing this on Android and it causes huge errors likely related to not destroying and recreating the renderers. (I will create a separate Question on this)

So to avoid this I would like my application to quit upon changing Anti Aliasing and to reopen with the new Anti Aliasing settings.

Thanks in advance

Comment
Add comment · Show 7
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 vexe · Sep 12, 2013 at 01:15 PM 0
Share

Hmm, sorry about the previous answer. You were right. Thinking about it now fresh, if I were in Windows and out of options, I would try to run an external exe from within my game that kills the game and launches it again... I will seek other ideas as we speak.

avatar image meat5000 ♦ · Sep 12, 2013 at 01:21 PM 3
Share

Can you not simply do a

"Game must be restarted before AntiAliasing will take effect"

Like 75% of other game devs do? :)

avatar image Exalia · Sep 12, 2013 at 02:01 PM 0
Share

no problem vexe :) that sounds like a good idea however like I said in my original post I'm running Android ;)

meat5000 no, but thanks for your input I guess?

avatar image roojerry · Sep 12, 2013 at 02:12 PM 1
Share

As far as I am aware, there is no Unity functionality to restart an app. You may have to write an android plugin that will use android specific calls to force a restart

avatar image Exalia · Sep 12, 2013 at 05:47 PM 0
Share

Cheers $$anonymous$$

:)

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by vexe · Sep 13, 2013 at 11:02 AM

Can't you do what most games do upon major settings change? - "Changes of X will not take effect till you restart the game" or something. - You can hack it, whenever the user changes the settings, don't overwrite what you have, store them in a suitable structure, when your game loads, load the settings that's in that structure (by default, let that structure at the beginning store your default settings) - maybe you could let that structure communicate with some XML - what say you?

Comment
Add comment · Show 13 · 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 Exalia · Sep 13, 2013 at 01:01 PM 0
Share

thanks :)

(Saying it again so it doesn't look like I don't appreciate your response)

avatar image vexe · Sep 13, 2013 at 01:04 PM 0
Share

You're welcome! - Glad I gave you a useful idea, at least something you could work on.

avatar image Exalia · Sep 18, 2013 at 09:08 AM 0
Share

Struggling to find a way of doing this :S Saving the settings in a suitable structure is fine But how would I tell Unity to use X settings before it creates it's GLContext ?

avatar image vexe · Sep 18, 2013 at 09:12 AM 0
Share

Not sure I got you. Could you elaborate more? You mean how could you tell unity what structure to use at the beginning?

avatar image Exalia · Sep 18, 2013 at 09:21 AM 0
Share

I guess so? I mean I don't know how to tell it to do anything before a GameObject has been loaded so...

Show more comments

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

20 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Scene not loading properly on android device? 0 Answers

Virtual reality apply music to different parts of the scene based on where user is looking at. 0 Answers

How do I Force Application to Quit if no internet connection available 1 Answer

GUI Layout 'Fading' on changing QualitySettings 1 Answer

How to log a finger move? 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