format
typescript
Random.RandomUnitVector()class: Random
description
Returns a random non-negative Vector3.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
Vector3 | Random non-negative Vector3 |
code example
typescript
let random = new Random();
let num = random.RandomUnitVector();
Debug.Log(num);