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 Haugen · Jun 22, 2014 at 09:27 AM · editor-scriptingsettings

Editing "settings" in script?

I'm working on a team for a simple game, and some of the designers are complaining that they need "such and such" setting easily available, and are stumbling through the many menus. I was thinking of making a "settings menu" from script so they have exactly what they need, and can play with only the needed settings in a nice and minimalist way.

This is esoteric, but is it even possible to edit things like "render settings", and "project settings" from a script? And more importantly, where should I look for the documentation for something like this?

thanks!

-Frank

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
1
Best Answer

Answer by Fornoreason1000 · Jun 22, 2014 at 09:42 AM

You can definitely edit the settings in game and certainly can be done within the GUI... all you do is set these variables within the scripts triggered by your GUI. now be warned... not every setting can be edited...

this is most notable in the quality settings where not all the settings in the editor are available at runtime... such as Texture Quality, Shadow Types and soft particles. this is a rather annoying design flaw in Unity which is a real pain to work around. also not all settings I've listed below will be needed in your Game such as master texture limit which is completely useless to the player and probably will annoy your designers further...

Below are some Scripting Documentation of each of the available settings.

Render Settings: http://docs.unity3d.com/ScriptReference/RenderSettings.html

Audio Settings: http://docs.unity3d.com/ScriptReference/AudioSettings.html

Quality Settings: http://docs.unity3d.com/Manual/class-QualitySettings.html

Player Settings: http://docs.unity3d.com/ScriptReference/PlayerSettings.html

other than the missing settings bug... unity can be made to support custom settings withing the game and should be able to meet your designers requirements. if you need more info on each settings just Google the appropriate setting class. e.g is i wanted to find out about Quality settings i would search "Quality Settings Unity" etc.

Hope it helps.. :)

Comment
Add comment · Show 3 · 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 Haugen · Jun 22, 2014 at 09:59 AM 0
Share

Think this can help, would more, like "input settings" be available? And this doesn't have to be at runtime.

one of the request made to me, (like I'm, as a programmer, some sort of wizard that can make anything possible), was a simplified way to add input, (I find the current way simple enough, but I'm not the $$anonymous$$m lead, who is a sigh designer).

avatar image Fornoreason1000 · Jun 22, 2014 at 10:12 AM 1
Share

if not at runtine then when? ($$anonymous$$ain $$anonymous$$enu withing the game build counts as runtime) if your trying to edit the popup you get when you run a build then forget it... that thing is hard coded to oblivion. trust me.

yes but for input it is a little different and depends how the games input is set up...I use a PS3/360 controller for my games so i wrap a class for them then receive the inputs manually

but yes but the way you do it is outside the Input $$anonymous$$anager static class so you will not get documentation for it in scripting. Input Buttons can't be edited one the game starts. (only in the pop up before it)

avatar image Fornoreason1000 · Jun 22, 2014 at 10:21 AM 1
Share

if you are talking about the build configuration window then i suggest you disable it (yes i'm surprised they let you do that") then make your own settings menu inside the game e.g AT runtime... it makes the seem game a lot neater too.

to disable the config window go to Player settings and change resolution dialog to Disabled. from there you can add your Settings where ever the designer chooses... explain to him that the standard config window is completely uncustomizable and its necessary for you to use an in-game setting menu ins$$anonymous$$d.

ideal places for the settings are...

Pause $$anonymous$$enus.., Item $$anonymous$$enus... Title Screens... Before Title screens

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

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

Related Questions

Can't open script via Visual Studio (only last 2 days) 3 Answers

Set Import Setting When an Audio Clip is Dragged into the Project 0 Answers

Best way to rename scripts 1 Answer

Show prefab/GO in viewport via script 1 Answer

question about camera limits to the screen 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