Random.insideUnitSphere not working

When I tried to write the line same as Nathan’s code, this error has occured.

Hi there,
Since you have using statements for both System and UnityEngine, and both these have classes called Random, you need to specify which one you want to use.

In this case, you can simply add the UnityEngine in front of Random.
UnityEngine.Random.insideUnitSphere.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms