Closed YouriOkkerse closed 3 years ago
After upgrading to Unity 2020.20f1, I am seeing this error as well.
I believe you can leave out the entire line and the error is resolved. Since I have been working on so many different projects the past days I can't perfectly recall but I believe the line was unused. Furthermore a really nice package.
Yeah, looking at the code, I'm not sure why Random was an instance in the first place.
As this documentation outlines, UnityEngine.Random
is a static class in both 2019.3 and 2020.2.
Removing line 176 should not impact the other Random calls, as it will now just access the static version.
I'm going to go ahead and work with that for a while and see if any issues arise.
Hi,
@TylerKostuch, @YouriOkkerse you are both correct, this line should not exists over there at all. It was transfered from System.Random implementation and i've made some copy-paste error. Sorry for troubles :)
I've pushed an update and now everything seems to be alright.
Cheers
Thanks @YouriOkkerse, I hate maintain a fork so I appreciate the fast update. Everything is working perfectly.
Library\PackageCache\com.nol1fe.delaunator@d542c6bf57\Runtime\Scripts\UniformPoissionDiskSampler.cs(176,30): error CS0723: Cannot declare a variable of static type 'Random'