nicollasricas / decks-unity

Enables Stream Deck integration with Unity.
MIT License
28 stars 0 forks source link

Toggle Project Settings #6

Open DerLeole opened 3 years ago

DerLeole commented 3 years ago

Would it be possible to make a button to change/toggle certain entries in the project settings?

I have to toggle a single option (Initialise XR on startup) in the project settings multiple times a day and it gets really frustration. Could a similar option like the "Execute Menu" button be added to change values in the project settings based on their name/path?

nicollasricas commented 3 years ago

Hey,

Could you give me a few examples of which project settings you wish to change?

I never had to change something like that, but if there's an exposed API for that it can be done.

DerLeole commented 3 years ago

The one example which inspired me to suggest this would be the "Initialise XR on startup" toggle box in the "XR Plug-in Managment" section of the project settings.

nicollasricas commented 3 years ago

Hey,

Just to let you know that it's possible to implement this since Unity exposes project settings although I need to think of a way to make this dynamic so that I don't need to implement every setting manually.

XRSettings.enabled = true or false