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