Class Vector4Parameter
A numeric parameter for generating Vector4 samples
Inherited Members
Namespace: UnityEngine.Perception.Randomization.Parameters
Assembly: Unity.Perception.Runtime.dll
Syntax
[Serializable]
public class Vector4Parameter : NumericParameter<Vector4>
Fields
w
The sampler used for randomizing the w component of generated samples
Declaration
[SerializeReference]
public ISampler w
Field Value
Type | Description |
---|---|
ISampler |
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 |
z
The sampler used for randomizing the z component of generated samples
Declaration
[SerializeReference]
public ISampler z
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 Vector4 sample
Declaration
public override Vector4 Sample()
Returns
Type | Description |
---|---|
Vector4 | The generated sample |