immersivecognition / unity-experiment-framework

UXF - Framework for creating human behaviour experiments in Unity
https://immersivecognition.github.io/unity-experiment-framework/
MIT License
215 stars 41 forks source link

Add settings .GetInt("key"), .GetFloat("key"), .GetString("key"), .GetObject("key") methods #11

Closed jackbrookes closed 5 years ago

jackbrookes commented 5 years ago

May be better than current requirements of using the System.Convert toolbox.

This syntax is similar to the Unity PlayerPrefs system https://docs.unity3d.com/ScriptReference/PlayerPrefs.html

Could include:

GetInt("key") GetFloat("key") GetString("key") GetDict("key") GetObject("key")

SetInt(1) SetFloat(1.0f) SetString("text") SetDict(Dictionary<string, object>) SetObject("anything")

jackbrookes commented 5 years ago

Added in 1.8