unity-atoms/Packages/Core/Runtime/Variables
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
..
AtomBaseVariable.cs Remove all FormerlySerializedAs attributes 2019-10-18 17:36:10 +02:00
AtomBaseVariable.cs.meta Update the last missing atoms with new icon system 2019-10-02 17:49:38 +02:00
AtomVariable.cs Better user guidance for working with AtomVariables (#70) 2019-11-14 12:59:11 +01:00
AtomVariable.cs.meta Update the last missing atoms with new icon system 2019-10-02 17:49:38 +02:00
BoolVariable.cs Regenerate docs for bool Atoms 2019-10-15 22:23:46 +02:00
BoolVariable.cs.meta Regenerate core atoms with new icon system 2019-10-02 17:36:20 +02:00
Collider2DVariable.cs Regenerate docs for Collider2D Atoms 2019-10-15 22:27:22 +02:00
Collider2DVariable.cs.meta Regenerate core atoms with new icon system 2019-10-02 17:36:20 +02:00
ColliderVariable.cs Regenerate docs for Collider Atoms 2019-10-15 22:26:14 +02:00
ColliderVariable.cs.meta Regenerate core atoms with new icon system 2019-10-02 17:36:20 +02:00
ColorVariable.cs Regenerate docs for Color Atoms 2019-10-15 22:24:44 +02:00
ColorVariable.cs.meta Regenerate core atoms with new icon system 2019-10-02 17:36:20 +02:00
EquatableAtomVariable.cs New repo structure 2019-10-01 17:27:22 +02:00
EquatableAtomVariable.cs.meta New repo structure 2019-10-01 17:27:22 +02:00
FloatVariable.cs Regenerate docs for float Atoms 2019-10-15 22:29:05 +02:00
FloatVariable.cs.meta Regenerate core atoms with new icon system 2019-10-02 17:36:20 +02:00
GameObjectVariable.cs Regenerate docs for GameObject Atoms 2019-10-15 22:30:18 +02:00
GameObjectVariable.cs.meta Regenerate core atoms with new icon system 2019-10-02 17:36:20 +02:00
IntVariable.cs Regenerate docs for int Atoms 2019-10-15 22:32:06 +02:00
IntVariable.cs.meta Regenerate core atoms with new icon system 2019-10-02 17:36:20 +02:00
IWithApplyChange.cs New repo structure 2019-10-01 17:27:22 +02:00
IWithApplyChange.cs.meta New repo structure 2019-10-01 17:27:22 +02:00
StringVariable.cs Regenerate docs for string Atoms 2019-10-15 22:33:06 +02:00
StringVariable.cs.meta Regenerate core atoms with new icon system 2019-10-02 17:36:20 +02:00
Vector2Variable.cs Regenreate docs for Vector2 Atoms 2019-10-15 22:34:08 +02:00
Vector2Variable.cs.meta Regenerate core atoms with new icon system 2019-10-02 17:36:20 +02:00
Vector3Variable.cs Regenerate docs for Vector3 Atoms 2019-10-15 22:34:48 +02:00
Vector3Variable.cs.meta Regenerate core atoms with new icon system 2019-10-02 17:36:20 +02:00