Search Unity

Tutorial - A BETTER Way to Get Random Values Between 2 Numbers or Curves

Discussion in 'Community Learning & Teaching' started by ChrisKurhan, Mar 15, 2022.

  1. ChrisKurhan

    ChrisKurhan

    Joined:
    Dec 28, 2015
    Posts:
    268


    Hey all! Happy #TutorialTuesday!

    Are you tired of having to maintain Min & Max variables to choose random values between? In this tutorial you'll learn a much simpler AND more powerful way to choose random values between two constants, curves, on a curve, or even a single value! Those of you familiar with Particle Systems have seen the solution in the Inspector, but maybe just don't know how to get it into your own scripts.
    Stop writing Min/Max variables and take advantage of the MinMaxCurve today!

    As always, the full project is available on GitHub!

    If you got value from this video, please consider liking, subscribing, and sharing to help these tutorials reach and add value to even more people. New tutorials are posted every Tuesday!
     
    enpiech_unity and apkdev like this.