mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-23 08:38:23 -05:00
9b027e2308
* 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` |
||
---|---|---|
.. | ||
SetVariableValue | ||
AtomAction.cs | ||
AtomAction.cs.meta | ||
BoolAction.cs | ||
BoolAction.cs.meta | ||
BoolBoolAction.cs | ||
BoolBoolAction.cs.meta | ||
Collider2DAction.cs | ||
Collider2DAction.cs.meta | ||
Collider2DCollider2DAction.cs | ||
Collider2DCollider2DAction.cs.meta | ||
ColliderAction.cs | ||
ColliderAction.cs.meta | ||
ColliderColliderAction.cs | ||
ColliderColliderAction.cs.meta | ||
ColorAction.cs | ||
ColorAction.cs.meta | ||
ColorColorAction.cs | ||
ColorColorAction.cs.meta | ||
FloatAction.cs | ||
FloatAction.cs.meta | ||
FloatFloatAction.cs | ||
FloatFloatAction.cs.meta | ||
GameObjectAction.cs | ||
GameObjectAction.cs.meta | ||
GameObjectGameObjectAction.cs | ||
GameObjectGameObjectAction.cs.meta | ||
IntAction.cs | ||
IntAction.cs.meta | ||
IntIntAction.cs | ||
IntIntAction.cs.meta | ||
SetVariableValue.meta | ||
StringAction.cs | ||
StringAction.cs.meta | ||
StringStringAction.cs | ||
StringStringAction.cs.meta | ||
Vector2Action.cs | ||
Vector2Action.cs.meta | ||
Vector2Vector2Action.cs | ||
Vector2Vector2Action.cs.meta | ||
Vector3Action.cs | ||
Vector3Action.cs.meta | ||
Vector3Vector3Action.cs | ||
Vector3Vector3Action.cs.meta | ||
VoidAction.cs | ||
VoidAction.cs.meta |