- Home /
Question by
kai_taylor · Feb 12, 2015 at 01:23 PM ·
uicanvasscroll
Velocity of scrollRect always returns (0.0,0.0)
In the documentation it says that ScrollRect has a velocity variable. (http://docs.unity3d.com/460/Documentation/ScriptReference/UI.ScrollRect.html)
But if I try to tap into it or output it to the console using the following code
Debug.Log("Velocity: " + scroll.velocity.ToString());
the only output I get is
Velocity: (0.0, 0.0)
UnityEngine.Debug:Log(Object)
Has anyone managed to get a value from this variable? Any advice on what I might be doing wrong? Thanks in advance for any help.
Comment
Your answer
Follow this Question
Related Questions
Buttons in UI Scroll Rect 2 Answers
Unity 4.6: Position jumps when switching Canvas render mode from Overlay to camera in code 0 Answers
Changing the Canvas RenderCamera by C# script ? 0 Answers
Antialiasing As Post Effect Blurring UI Text 0 Answers
Why are the elements of my scrollview scaled different after refreshing? 0 Answers