class AnimatorTimerSource
Part of Tools
Members 5
private bool m_active = falseprivate bool m_loop = falseprivate float m_target_value = 0private float m_value = 0private float m_time = 0Methods 7
Starts animate value until value reaches target value.
valfloattarget valuespeedfloatspeed of animating, units per second
Referenced by HoverEffect.OnMouseEnter(), HoverEffect.OnMouseLeave(), MainMenuButtonEffect.OnFocus()
Show 1 more
, MainMenuButtonEffect.OnFocusLost()void AnimateLoop(float speed = 1.0)Starts infinite animation loop <-1,1>. Based on sinus transition.
speedfloatspeed of animating , cycles per second (1.0 means one 360 degree sinus cycle per second: 0..1..0..-1..0)
float GetTargetValue()Returns target value. While AnimateLoop returns angle of cycle in radians.
References m_target_value
void Tick(float timeslice)Ticks the timer, is called by timer subsystem.
References Math.AbsFloat(), Math.Sin(), m_active