unity-atoms/Packages/Core/Runtime/Actions
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
..
SetVariableValue Added pre change transformers to Variables + Clamp Int / Float (#93) 2020-02-16 12:44:46 +01:00
AtomAction.cs #84 parameterless atom listener (#86) 2019-11-26 20:12:54 +01:00
AtomAction.cs.meta Update the last missing atoms with new icon system 2019-10-02 17:49:38 +02:00
BoolAction.cs Regenerate docs for bool Atoms 2019-10-15 22:23:46 +02:00
BoolAction.cs.meta Regenerate core atoms with new icon system 2019-10-02 17:36:20 +02:00
BoolBoolAction.cs Regenerate docs for bool Atoms 2019-10-15 22:23:46 +02:00
BoolBoolAction.cs.meta Regenerate core atoms with new icon system 2019-10-02 17:36:20 +02:00
Collider2DAction.cs Regenerate docs for Collider2D Atoms 2019-10-15 22:27:22 +02:00
Collider2DAction.cs.meta Regenerate core atoms with new icon system 2019-10-02 17:36:20 +02:00
Collider2DCollider2DAction.cs Regenerate docs for Collider2D Atoms 2019-10-15 22:27:22 +02:00
Collider2DCollider2DAction.cs.meta Regenerate core atoms with new icon system 2019-10-02 17:36:20 +02:00
ColliderAction.cs Regenerate docs for Collider Atoms 2019-10-15 22:26:14 +02:00
ColliderAction.cs.meta Regenerate core atoms with new icon system 2019-10-02 17:36:20 +02:00
ColliderColliderAction.cs Regenerate docs for Collider Atoms 2019-10-15 22:26:14 +02:00
ColliderColliderAction.cs.meta Regenerate core atoms with new icon system 2019-10-02 17:36:20 +02:00
ColorAction.cs Regenerate docs for Color Atoms 2019-10-15 22:24:44 +02:00
ColorAction.cs.meta Regenerate core atoms with new icon system 2019-10-02 17:36:20 +02:00
ColorColorAction.cs Regenerate docs for Color Atoms 2019-10-15 22:24:44 +02:00
ColorColorAction.cs.meta Regenerate core atoms with new icon system 2019-10-02 17:36:20 +02:00
FloatAction.cs Regenerate docs for float Atoms 2019-10-15 22:29:05 +02:00
FloatAction.cs.meta Regenerate core atoms with new icon system 2019-10-02 17:36:20 +02:00
FloatFloatAction.cs Regenerate docs for float Atoms 2019-10-15 22:29:05 +02:00
FloatFloatAction.cs.meta Regenerate core atoms with new icon system 2019-10-02 17:36:20 +02:00
GameObjectAction.cs Regenerate docs for GameObject Atoms 2019-10-15 22:30:18 +02:00
GameObjectAction.cs.meta Regenerate core atoms with new icon system 2019-10-02 17:36:20 +02:00
GameObjectGameObjectAction.cs Regenerate docs for GameObject Atoms 2019-10-15 22:30:18 +02:00
GameObjectGameObjectAction.cs.meta Regenerate core atoms with new icon system 2019-10-02 17:36:20 +02:00
IntAction.cs Regenerate docs for int Atoms 2019-10-15 22:32:06 +02:00
IntAction.cs.meta Regenerate core atoms with new icon system 2019-10-02 17:36:20 +02:00
IntIntAction.cs Regenerate docs for int Atoms 2019-10-15 22:32:06 +02:00
IntIntAction.cs.meta Regenerate core atoms with new icon system 2019-10-02 17:36:20 +02:00
SetVariableValue.meta New repo structure 2019-10-01 17:27:22 +02:00
StringAction.cs Regenerate docs for string Atoms 2019-10-15 22:33:06 +02:00
StringAction.cs.meta Regenerate core atoms with new icon system 2019-10-02 17:36:20 +02:00
StringStringAction.cs Regenerate docs for string Atoms 2019-10-15 22:33:06 +02:00
StringStringAction.cs.meta Regenerate core atoms with new icon system 2019-10-02 17:36:20 +02:00
Vector2Action.cs Regenreate docs for Vector2 Atoms 2019-10-15 22:34:08 +02:00
Vector2Action.cs.meta Regenerate core atoms with new icon system 2019-10-02 17:36:20 +02:00
Vector2Vector2Action.cs Regenreate docs for Vector2 Atoms 2019-10-15 22:34:08 +02:00
Vector2Vector2Action.cs.meta Regenerate core atoms with new icon system 2019-10-02 17:36:20 +02:00
Vector3Action.cs Regenerate docs for Vector3 Atoms 2019-10-15 22:34:48 +02:00
Vector3Action.cs.meta Regenerate core atoms with new icon system 2019-10-02 17:36:20 +02:00
Vector3Vector3Action.cs Regenerate docs for Vector3 Atoms 2019-10-15 22:34:48 +02:00
Vector3Vector3Action.cs.meta Regenerate core atoms with new icon system 2019-10-02 17:36:20 +02:00
VoidAction.cs #84 parameterless atom listener (#86) 2019-11-26 20:12:54 +01:00
VoidAction.cs.meta Regenerate core atoms with new icon system 2019-10-02 17:36:20 +02:00