RaTweening 1.0.0
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
RaTweening.RaTweenLambda Class Reference

This class contains all the Lambda.RaTweenLambdaBase<ValueT> methods to create / play Lambda tweens.

‍Note: Lambda Tweens are used to create a tween where you can define the setter logics of the tween yourself in code. (for when you try to do custom logics or the tween does not have a clear target)

More...

Static Public Member Functions

static RaTweenLambdaColor TweenColorR (Color start, float red, float duration, SetterHandler setter, IsValidHandler isValidHandler=null)
 Tweens the Color's Red Channel Value More...
 
static RaTweenLambdaColor TweenColorG (Color start, float green, float duration, SetterHandler setter, IsValidHandler isValidHandler=null)
 Tweens the Color's Green Channel Value More...
 
static RaTweenLambdaColor TweenColorB (Color start, float blue, float duration, SetterHandler setter, IsValidHandler isValidHandler=null)
 Tweens the Color's Blue Channel Value More...
 
static RaTweenLambdaColor TweenColorA (Color start, float alpha, float duration, SetterHandler setter, IsValidHandler isValidHandler=null)
 Tweens the Color's Alpha Channel Value More...
 
static RaTweenLambdaColor TweenColor (Color start, Color end, float duration, SetterHandler setter, IsValidHandler isValidHandler=null)
 Tweens a Color Value More...
 
static RaTweenLambdaFloat TweenFloat (float start, float end, float duration, SetterHandler setter, IsValidHandler isValidHandler=null)
 Tweens a Float Value More...
 
static RaTweenLambdaRect TweenRectX (Rect start, float value, float duration, SetterHandler setter, IsValidHandler isValidHandler=null)
 Tweens a Rect's X Value More...
 
static RaTweenLambdaRect TweenRectY (Rect start, float value, float duration, SetterHandler setter, IsValidHandler isValidHandler=null)
 Tweens a Rect's Y Value More...
 
static RaTweenLambdaRect TweenRectWidth (Rect start, float value, float duration, SetterHandler setter, IsValidHandler isValidHandler=null)
 Tweens a Rect's Width Value More...
 
static RaTweenLambdaRect TweenRectHeight (Rect start, float value, float duration, SetterHandler setter, IsValidHandler isValidHandler=null)
 Tweens a Rect's Height Value More...
 
static RaTweenLambdaRect TweenRect (Rect start, Rect end, float duration, SetterHandler setter, IsValidHandler isValidHandler=null)
 Tweens a Rect Value More...
 
static RaTweenLambdaVector2 TweenVector2X (Vector2 start, float xValue, float duration, SetterHandler setter, IsValidHandler isValidHandler=null)
 Tweens a Vector2's X Axis Value More...
 
static RaTweenLambdaVector2 TweenVector2Y (Vector2 start, float yValue, float duration, SetterHandler setter, IsValidHandler isValidHandler=null)
 Tweens a Vector2's Y Axis Value More...
 
static RaTweenLambdaVector2 TweenVector2 (Vector2 start, Vector2 end, float duration, SetterHandler setter, IsValidHandler isValidHandler=null)
 Tweens a Vector2 Value More...
 
static RaTweenLambdaVector3 TweenVector3X (Vector3 start, float xValue, float duration, SetterHandler setter, IsValidHandler isValidHandler=null)
 Tweens a Vector3's X Axis Value More...
 
static RaTweenLambdaVector3 TweenVector3Y (Vector3 start, float yValue, float duration, SetterHandler setter, IsValidHandler isValidHandler=null)
 Tweens a Vector3's Y Axis Value More...
 
static RaTweenLambdaVector3 TweenVector3Z (Vector3 start, float zValue, float duration, SetterHandler setter, IsValidHandler isValidHandler=null)
 Tweens a Vector3's Z Axis Value More...
 
static RaTweenLambdaVector3 TweenVector3 (Vector3 start, Vector3 end, float duration, SetterHandler setter, IsValidHandler isValidHandler=null)
 Tweens a Vector3 Value More...
 
static RaTweenLambdaVector4 TweenVector4X (Vector4 start, float xValue, float duration, SetterHandler setter, IsValidHandler isValidHandler=null)
 Tweens a Vector4's X Axis Value More...
 
static RaTweenLambdaVector4 TweenVector4Y (Vector4 start, float yValue, float duration, SetterHandler setter, IsValidHandler isValidHandler=null)
 Tweens a Vector4's Y Axis Value More...
 
static RaTweenLambdaVector4 TweenVector4Z (Vector4 start, float zValue, float duration, SetterHandler setter, IsValidHandler isValidHandler=null)
 Tweens a Vector4's Z Axis Value More...
 
static RaTweenLambdaVector4 TweenVector4W (Vector4 start, float wValue, float duration, SetterHandler setter, IsValidHandler isValidHandler=null)
 Tweens a Vector4's W Axis Value More...
 
static RaTweenLambdaVector4 TweenVector4 (Vector4 start, Vector4 end, float duration, SetterHandler setter, IsValidHandler isValidHandler=null)
 Tweens a Vector4 Value More...
 

Detailed Description

This class contains all the Lambda.RaTweenLambdaBase<ValueT> methods to create / play Lambda tweens.

‍Note: Lambda Tweens are used to create a tween where you can define the setter logics of the tween yourself in code. (for when you try to do custom logics or the tween does not have a clear target)

Member Function Documentation

◆ TweenColor()

static RaTweenLambdaColor RaTweening.RaTweenLambda.TweenColor ( Color  start,
Color  end,
float  duration,
SetterHandler  setter,
IsValidHandler  isValidHandler = null 
)
static

Tweens a Color Value

Parameters
startThe Color value to start from
endThe Color value to tween to
durationThe duration of the tween in seconds
setterThe Setter Callback which can be used to apply the tween value to a target
isValidHandlerAn optional IsValid check, which should return true if the tween is valid, and false if the tween should be terminated (Think of null reference prevention)

◆ TweenColorA()

static RaTweenLambdaColor RaTweening.RaTweenLambda.TweenColorA ( Color  start,
float  alpha,
float  duration,
SetterHandler  setter,
IsValidHandler  isValidHandler = null 
)
static

Tweens the Color's Alpha Channel Value

Parameters
startThe Color value to start from
alphaThe alpha value to tween to (value between 0 - 1)
durationThe duration of the tween in seconds
setterThe Setter Callback which can be used to apply the tween value to a target
isValidHandlerAn optional IsValid check, which should return true if the tween is valid, and false if the tween should be terminated (Think of null reference prevention)

◆ TweenColorB()

static RaTweenLambdaColor RaTweening.RaTweenLambda.TweenColorB ( Color  start,
float  blue,
float  duration,
SetterHandler  setter,
IsValidHandler  isValidHandler = null 
)
static

Tweens the Color's Blue Channel Value

Parameters
startThe Color value to start from
blueThe blue value to tween to (value between 0 - 1)
durationThe duration of the tween in seconds
setterThe Setter Callback which can be used to apply the tween value to a target
isValidHandlerAn optional IsValid check, which should return true if the tween is valid, and false if the tween should be terminated (Think of null reference prevention)

◆ TweenColorG()

static RaTweenLambdaColor RaTweening.RaTweenLambda.TweenColorG ( Color  start,
float  green,
float  duration,
SetterHandler  setter,
IsValidHandler  isValidHandler = null 
)
static

Tweens the Color's Green Channel Value

Parameters
startThe Color value to start from
greenThe green value to tween to (value between 0 - 1)
durationThe duration of the tween in seconds
setterThe Setter Callback which can be used to apply the tween value to a target
isValidHandlerAn optional IsValid check, which should return true if the tween is valid, and false if the tween should be terminated (Think of null reference prevention)

◆ TweenColorR()

static RaTweenLambdaColor RaTweening.RaTweenLambda.TweenColorR ( Color  start,
float  red,
float  duration,
SetterHandler  setter,
IsValidHandler  isValidHandler = null 
)
static

Tweens the Color's Red Channel Value

Parameters
startThe Color value to start from
redThe red value to tween to (value between 0 - 1)
durationThe duration of the tween in seconds
setterThe Setter Callback which can be used to apply the tween value to a target
isValidHandlerAn optional IsValid check, which should return true if the tween is valid, and false if the tween should be terminated (Think of null reference prevention)

◆ TweenFloat()

static RaTweenLambdaFloat RaTweening.RaTweenLambda.TweenFloat ( float  start,
float  end,
float  duration,
SetterHandler  setter,
IsValidHandler  isValidHandler = null 
)
static

Tweens a Float Value

Parameters
startThe Float value to start from
endThe Float value to tween to
durationThe duration of the tween in seconds
setterThe Setter Callback which can be used to apply the tween value to a target
isValidHandlerAn optional IsValid check, which should return true if the tween is valid, and false if the tween should be terminated (Think of null reference prevention)

◆ TweenRect()

static RaTweenLambdaRect RaTweening.RaTweenLambda.TweenRect ( Rect  start,
Rect  end,
float  duration,
SetterHandler  setter,
IsValidHandler  isValidHandler = null 
)
static

Tweens a Rect Value

Parameters
startThe Rect value to start from
endThe Rect value to tween to
durationThe duration of the tween in seconds
setterThe Setter Callback which can be used to apply the tween value to a target
isValidHandlerAn optional IsValid check, which should return true if the tween is valid, and false if the tween should be terminated (Think of null reference prevention)

◆ TweenRectHeight()

static RaTweenLambdaRect RaTweening.RaTweenLambda.TweenRectHeight ( Rect  start,
float  value,
float  duration,
SetterHandler  setter,
IsValidHandler  isValidHandler = null 
)
static

Tweens a Rect's Height Value

Parameters
startThe Rect value to start from
valueThe Rect's Height value to tween to
durationThe duration of the tween in seconds
setterThe Setter Callback which can be used to apply the tween value to a target
isValidHandlerAn optional IsValid check, which should return true if the tween is valid, and false if the tween should be terminated (Think of null reference prevention)

◆ TweenRectWidth()

static RaTweenLambdaRect RaTweening.RaTweenLambda.TweenRectWidth ( Rect  start,
float  value,
float  duration,
SetterHandler  setter,
IsValidHandler  isValidHandler = null 
)
static

Tweens a Rect's Width Value

Parameters
startThe Rect value to start from
widthThe Rect's Width value to tween to
durationThe duration of the tween in seconds
setterThe Setter Callback which can be used to apply the tween value to a target
isValidHandlerAn optional IsValid check, which should return true if the tween is valid, and false if the tween should be terminated (Think of null reference prevention)

◆ TweenRectX()

static RaTweenLambdaRect RaTweening.RaTweenLambda.TweenRectX ( Rect  start,
float  value,
float  duration,
SetterHandler  setter,
IsValidHandler  isValidHandler = null 
)
static

Tweens a Rect's X Value

Parameters
startThe Rect value to start from
valueThe Rect's X value to tween to
durationThe duration of the tween in seconds
setterThe Setter Callback which can be used to apply the tween value to a target
isValidHandlerAn optional IsValid check, which should return true if the tween is valid, and false if the tween should be terminated (Think of null reference prevention)

◆ TweenRectY()

static RaTweenLambdaRect RaTweening.RaTweenLambda.TweenRectY ( Rect  start,
float  value,
float  duration,
SetterHandler  setter,
IsValidHandler  isValidHandler = null 
)
static

Tweens a Rect's Y Value

Parameters
startThe Rect value to start from
valueThe Rect's Y value to tween to
durationThe duration of the tween in seconds
setterThe Setter Callback which can be used to apply the tween value to a target
isValidHandlerAn optional IsValid check, which should return true if the tween is valid, and false if the tween should be terminated (Think of null reference prevention)

◆ TweenVector2()

static RaTweenLambdaVector2 RaTweening.RaTweenLambda.TweenVector2 ( Vector2  start,
Vector2  end,
float  duration,
SetterHandler  setter,
IsValidHandler  isValidHandler = null 
)
static

Tweens a Vector2 Value

Parameters
startThe Vector2 value to start from
endThe Vector2 value to tween to
durationThe duration of the tween in seconds
setterThe Setter Callback which can be used to apply the tween value to a target
isValidHandlerAn optional IsValid check, which should return true if the tween is valid, and false if the tween should be terminated (Think of null reference prevention)

◆ TweenVector2X()

static RaTweenLambdaVector2 RaTweening.RaTweenLambda.TweenVector2X ( Vector2  start,
float  xValue,
float  duration,
SetterHandler  setter,
IsValidHandler  isValidHandler = null 
)
static

Tweens a Vector2's X Axis Value

Parameters
startThe Vector2 value to start from
xValueThe Vector2's X Axis value to tween to
durationThe duration of the tween in seconds
setterThe Setter Callback which can be used to apply the tween value to a target
isValidHandlerAn optional IsValid check, which should return true if the tween is valid, and false if the tween should be terminated (Think of null reference prevention)

◆ TweenVector2Y()

static RaTweenLambdaVector2 RaTweening.RaTweenLambda.TweenVector2Y ( Vector2  start,
float  yValue,
float  duration,
SetterHandler  setter,
IsValidHandler  isValidHandler = null 
)
static

Tweens a Vector2's Y Axis Value

Parameters
startThe Vector2 value to start from
yValueThe Vector2's Y Axis value to tween to
durationThe duration of the tween in seconds
setterThe Setter Callback which can be used to apply the tween value to a target
isValidHandlerAn optional IsValid check, which should return true if the tween is valid, and false if the tween should be terminated (Think of null reference prevention)

◆ TweenVector3()

static RaTweenLambdaVector3 RaTweening.RaTweenLambda.TweenVector3 ( Vector3  start,
Vector3  end,
float  duration,
SetterHandler  setter,
IsValidHandler  isValidHandler = null 
)
static

Tweens a Vector3 Value

Parameters
startThe Vector3 value to start from
endThe Vector3 value to tween to
durationThe duration of the tween in seconds
setterThe Setter Callback which can be used to apply the tween value to a target
isValidHandlerAn optional IsValid check, which should return true if the tween is valid, and false if the tween should be terminated (Think of null reference prevention)

◆ TweenVector3X()

static RaTweenLambdaVector3 RaTweening.RaTweenLambda.TweenVector3X ( Vector3  start,
float  xValue,
float  duration,
SetterHandler  setter,
IsValidHandler  isValidHandler = null 
)
static

Tweens a Vector3's X Axis Value

Parameters
startThe Vector3 value to start from
xValueThe Vector3's X Axis value to tween to
durationThe duration of the tween in seconds
setterThe Setter Callback which can be used to apply the tween value to a target
isValidHandlerAn optional IsValid check, which should return true if the tween is valid, and false if the tween should be terminated (Think of null reference prevention)

◆ TweenVector3Y()

static RaTweenLambdaVector3 RaTweening.RaTweenLambda.TweenVector3Y ( Vector3  start,
float  yValue,
float  duration,
SetterHandler  setter,
IsValidHandler  isValidHandler = null 
)
static

Tweens a Vector3's Y Axis Value

Parameters
startThe Vector3 value to start from
yValueThe Vector3's Y Axis value to tween to
durationThe duration of the tween in seconds
setterThe Setter Callback which can be used to apply the tween value to a target
isValidHandlerAn optional IsValid check, which should return true if the tween is valid, and false if the tween should be terminated (Think of null reference prevention)

◆ TweenVector3Z()

static RaTweenLambdaVector3 RaTweening.RaTweenLambda.TweenVector3Z ( Vector3  start,
float  zValue,
float  duration,
SetterHandler  setter,
IsValidHandler  isValidHandler = null 
)
static

Tweens a Vector3's Z Axis Value

Parameters
startThe Vector3 value to start from
zValueThe Vector3's Z Axis value to tween to
durationThe duration of the tween in seconds
setterThe Setter Callback which can be used to apply the tween value to a target
isValidHandlerAn optional IsValid check, which should return true if the tween is valid, and false if the tween should be terminated (Think of null reference prevention)

◆ TweenVector4()

static RaTweenLambdaVector4 RaTweening.RaTweenLambda.TweenVector4 ( Vector4  start,
Vector4  end,
float  duration,
SetterHandler  setter,
IsValidHandler  isValidHandler = null 
)
static

Tweens a Vector4 Value

Parameters
startThe Vector4 value to start from
endThe Vector4 value to tween to
durationThe duration of the tween in seconds
setterThe Setter Callback which can be used to apply the tween value to a target
isValidHandlerAn optional IsValid check, which should return true if the tween is valid, and false if the tween should be terminated (Think of null reference prevention)

◆ TweenVector4W()

static RaTweenLambdaVector4 RaTweening.RaTweenLambda.TweenVector4W ( Vector4  start,
float  wValue,
float  duration,
SetterHandler  setter,
IsValidHandler  isValidHandler = null 
)
static

Tweens a Vector4's W Axis Value

Parameters
startThe Vector4 value to start from
wValueThe Vector4's W Axis value to tween to
durationThe duration of the tween in seconds
setterThe Setter Callback which can be used to apply the tween value to a target
isValidHandlerAn optional IsValid check, which should return true if the tween is valid, and false if the tween should be terminated (Think of null reference prevention)

◆ TweenVector4X()

static RaTweenLambdaVector4 RaTweening.RaTweenLambda.TweenVector4X ( Vector4  start,
float  xValue,
float  duration,
SetterHandler  setter,
IsValidHandler  isValidHandler = null 
)
static

Tweens a Vector4's X Axis Value

Parameters
startThe Vector4 value to start from
xValueThe Vector4's X Axis value to tween to
durationThe duration of the tween in seconds
setterThe Setter Callback which can be used to apply the tween value to a target
isValidHandlerAn optional IsValid check, which should return true if the tween is valid, and false if the tween should be terminated (Think of null reference prevention)

◆ TweenVector4Y()

static RaTweenLambdaVector4 RaTweening.RaTweenLambda.TweenVector4Y ( Vector4  start,
float  yValue,
float  duration,
SetterHandler  setter,
IsValidHandler  isValidHandler = null 
)
static

Tweens a Vector4's Y Axis Value

Parameters
startThe Vector4 value to start from
yValueThe Vector4's Y Axis value to tween to
durationThe duration of the tween in seconds
setterThe Setter Callback which can be used to apply the tween value to a target
isValidHandlerAn optional IsValid check, which should return true if the tween is valid, and false if the tween should be terminated (Think of null reference prevention)

◆ TweenVector4Z()

static RaTweenLambdaVector4 RaTweening.RaTweenLambda.TweenVector4Z ( Vector4  start,
float  zValue,
float  duration,
SetterHandler  setter,
IsValidHandler  isValidHandler = null 
)
static

Tweens a Vector4's Z Axis Value

Parameters
startThe Vector4 value to start from
zValueThe Vector4's Z Axis value to tween to
durationThe duration of the tween in seconds
setterThe Setter Callback which can be used to apply the tween value to a target
isValidHandlerAn optional IsValid check, which should return true if the tween is valid, and false if the tween should be terminated (Think of null reference prevention)