Class Vector2Parameter
A numeric parameter for generating Vector2 samples
Inherited Members
Namespace: UnityEngine.Perception.Randomization.Parameters
Assembly: Unity.Perception.Runtime.dll
Syntax
[Serializable]
public class Vector2Parameter : NumericParameter<Vector2>
Fields
x
The sampler used for randomizing the x component of generated samples
Declaration
[SerializeReference]
public ISampler x
Field Value
| Type | Description |
|---|---|
| ISampler |
y
The sampler used for randomizing the y component of generated samples
Declaration
[SerializeReference]
public ISampler y
Field Value
| Type | Description |
|---|---|
| ISampler |
Properties
samplers
Returns an IEnumerable that iterates over each sampler field in this parameter
Declaration
public override IEnumerable<ISampler> samplers { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<ISampler> |
Overrides
Methods
Sample()
Generates a Vector2 sample
Declaration
public override Vector2 Sample()
Returns
| Type | Description |
|---|---|
| Vector2 | The generated sample |