Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Mathf.Repeat question...

$
0
0
When Using Mathf.Repeat and Time.deltaTime to constantly loop a variable, is there a way to easily keep track of how many times said variable has been looped (I have tried things like "if(Looping_Value==x)Loop_Count+=1" but it does not work out)? What am I doing wrong? Thanks function Update(){ var Looping_Value : float = Mathf.Repeat(Looping_Value + (Time.deltaTime), 100); var Loop_Count : int; }

Viewing all articles
Browse latest Browse all 171066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>