Unity3D ERROR: Random is an ambiguous reference between'UnityEngine.Random' and 'System.Random' ✅✅✅

preview_player
Показать описание
Unity3D ERROR: Random is an ambiguous reference between"UnityEngine.Random" and "System.Random" Solved.

There are two different Random classes, there is the UnityEngine.Random and the System.Random. You usually want to use the UnityEngine.Random class.
If this is a tutorial, you probably missed the place where the tutorial said something about it.

If you need the UnityEngine Random, just put this in the top of the file:
🛑using Random=UnityEngine.Random;

and second method is t choose the specific class:
🛑int randomvalue = UnityEngine.Random.Range(limitMin.x, limitMax.x);

Hope this help you 😊
Рекомендации по теме
Комментарии
Автор

Random is a class not a method, where Range is a method 😅😅

LogicalProgrammer
Автор

Hi sir I'm following you since 2years and I learnt many things

I need your help or advice like how can I edit a TEXT ASSETS of a unity game I have its text assets but it's in .bytes form whenever I tried to open that the codes are there in encrypted form so how can I convert them to readable form

starkofficial
welcome to shbcf.ru