unity-atoms/Packages/Mobile/Runtime
Adam Ramberg 9b027e2308
Added pre change transformers to Variables + Clamp Int / Float (#93)
* Added pre change transformers to Variable + Clamp Value Function (first pre change transformer implementation)
- Added a list of pre change transformers to AtomVariable
- Added docs
- Added two AtomFunctions - ClampInt and ClampFloat
- Added custom editors for ClampInt and ClampFloat
- AtomFunction<T, T> is not part of the generator
- Regenerated all the Atoms

* - Created a base class for the editor for ClampFloat and ClampInt. Apparently it is not allowed to have multiple CustomEditor attributes defined for the same class. To implement this I also created an interface called `IIsValid` (for casting purposes in the editor).
- Initialize `PreChangeTransformers ` at declaration and removed initialization `OnEnable`
- Moved call to `RunPreChangeTransformers ` from `OnEnable` to `OnValidate`. Running it 2 times, once for initialValue and once for value since value can be changed at runtime via editor.
- Made the variable PreChangeTransformers private and created a property instead in order to make it impossible to overwrite the list with `null` from the outside.
- Moved `ClampInt` and `ClampFloat` in the `CreateAssetMenu` for `Unity Atoms/Functions/Transformers`
2020-02-16 12:44:46 +01:00
..
Actions Added pre change transformers to Variables + Clamp Int / Float (#93) 2020-02-16 12:44:46 +01:00
Constants Regenerate TouchUserInput Atoms 2019-10-15 21:10:57 +02:00
Events Regenerate TouchUserInput Atoms 2019-10-15 21:10:57 +02:00
Functions Added pre change transformers to Variables + Clamp Int / Float (#93) 2020-02-16 12:44:46 +01:00
Listeners Changed AddComponentMenu names for Listeners/Hooks (#84) 2019-11-13 08:59:39 +01:00
Lists Regenerate TouchUserInput Atoms 2019-10-15 21:10:57 +02:00
References - Added a top menu bar option to regenerate all existing Atoms. Nifty when developing the library. 2019-10-16 18:02:08 +02:00
Types Better user guidance for working with AtomVariables (#70) 2019-11-14 12:59:11 +01:00
UnityEvents Update Unity Events template comments 2019-10-15 22:03:54 +02:00
Variables Added pre change transformers to Variables + Clamp Int / Float (#93) 2020-02-16 12:44:46 +01:00
Actions.meta New repo structure 2019-10-01 17:27:22 +02:00
Constants.meta Add sub unity atoms namespace to generator + generate new atoms for TouchUserInput 2019-10-01 23:26:25 +02:00
Events.meta New repo structure 2019-10-01 17:27:22 +02:00
Functions.meta Added pre change transformers to Variables + Clamp Int / Float (#93) 2020-02-16 12:44:46 +01:00
Listeners.meta New repo structure 2019-10-01 17:27:22 +02:00
Lists.meta Add sub unity atoms namespace to generator + generate new atoms for TouchUserInput 2019-10-01 23:26:25 +02:00
MamboJamboStudios.UnityAtomsMobile.Runtime.asmdef New repo structure 2019-10-01 17:27:22 +02:00
MamboJamboStudios.UnityAtomsMobile.Runtime.asmdef.meta New repo structure 2019-10-01 17:27:22 +02:00
References.meta Add sub unity atoms namespace to generator + generate new atoms for TouchUserInput 2019-10-01 23:26:25 +02:00
Types.meta New repo structure 2019-10-01 17:27:22 +02:00
UnityEvents.meta New repo structure 2019-10-01 17:27:22 +02:00
Variables.meta New repo structure 2019-10-01 17:27:22 +02:00