unity-atoms/Packages/Mobile/Editor
Oliver Biwer 1dd2baeaec Better user guidance for working with AtomVariables (#70)
* #69 added custom editor for Variable Types, to guide the usage flow and reduce errors.

* allows unlocking of initialvalue in playmode

* adjustments to Variable Inspector

* Generator now works with all kinds of setups. just select the Packages folder when calling RegenerateAll.
Used this to regenerate the CustomEditors

* supports now structs

* Added RaiseButtons in VariableEditor. #72
Adding simple logging helper on listeners, for fast debugging.

* Call `serializedObject.Update();` before `OnInspectorGUI` in the editor script in order to update old value when changing value.
Show children for PropertyFields for initial and old value.
Some minor refactoring - renaming variables
Clean up in `RegenereateAllAtoms`
Use `OnEnable` instead of `OnAfterDeserialize` when setting inital value for variable. `OnAfterDeserialize` was causing major issues with the custom editor, eg. it did run when focusing a Variable and showing the inspector, basically making it worthless to change or even inspect the Variable at runtime. `OnEnable` is only called ones when the ScriptableObject is loaded in runtime, which is what we really want. This has been tested running in the editor and in builds.
Add missing editors scripts `TouchUserInputVariableEditor`and `SceneFieldVariableEditor`
2019-11-14 12:59:11 +01:00
..
Drawers Regenerate TouchUserInput Atoms 2019-10-15 21:10:57 +02:00
Editors Better user guidance for working with AtomVariables (#70) 2019-11-14 12:59:11 +01:00
Drawers.meta Add sub unity atoms namespace to generator + generate new atoms for TouchUserInput 2019-10-01 23:26:25 +02:00
Editors.meta Add sub unity atoms namespace to generator + generate new atoms for TouchUserInput 2019-10-01 23:26:25 +02:00
MamboJamboStudios.UnityAtomsMobile.Editor.asmdef Add sub unity atoms namespace to generator + generate new atoms for TouchUserInput 2019-10-01 23:26:25 +02:00
MamboJamboStudios.UnityAtomsMobile.Editor.asmdef.meta Add sub unity atoms namespace to generator + generate new atoms for TouchUserInput 2019-10-01 23:26:25 +02:00