Struct ConstantSampler
Returns a constant value when sampled
Implements
Inherited Members
Namespace: UnityEngine.Experimental.Perception.Randomization.Samplers
Assembly: solution.dll
Syntax
[Serializable]
public struct ConstantSampler : ISampler
Constructors
| Name | Description |
|---|---|
| ConstantSampler(float) | Constructs a new ConstantSampler |
Fields
| Name | Description |
|---|---|
| value | The value from which samples will be generated |
Properties
| Name | Description |
|---|---|
| baseSeed | The base seed used to initialize this sampler's state. Note that ConstantSamplers do not utilize a baseSeed. |
| range | A range bounding the values generated by this sampler |
| state | The current random state of this sampler. Note that ConstantSamplers do not utilize a random state. |
Methods
| Name | Description |
|---|---|
| IterateState(int) | Deterministically offsets a sampler's state. Note that ConstantSamplers do not have a state to iterate. |
| ResetState() | Resets a sampler's state to its base random seed. Note that there is no state to reset for ConstantSamplers. |
| Sample() | Generates one sample |
| Samples(int, out JobHandle) | Schedules a job to generate an array of samples |