How to calculate projectile range

Please check Accepted answer where you can find solution!

Try using the formula described here. @Clydeicus wrote “2 * cos(angle) * V * sqrt(2 * sin(angle) * V / 9.81) = range of projectile and V is the initial velocity of your projectile”. This assumes that acceleration due to gravity in your project is 9.81m/s^2 (which it is by default). You can just change that number to whatever you have gravity acceleration set to.

I found solution, but i am not going to delete this post, because maybe someone in future will need this. If you want answer, check this link. A member of Unity Technologies gave perfect answer.

This YouTube link shows how script works: Projectile Motion Simulation in Unity - YouTube

This is a link to script: https://forum.unity.com/threads/throw-an-object-along-a-parabola.158855/#post-1087673