Class Parameter
Parameters, in conjunction with a parameter configuration, are used to create convenient interfaces for randomizing simulations.
Namespace: UnityEngine.Perception.Randomization.Parameters
Syntax
public abstract class Parameter : object
Properties
sampleType
The sample type generated by this parameter
Declaration
public abstract Type sampleType { get; }
Property Value
Type | Description |
---|---|
Type |
Methods
GenericSample()
Generates a generic sample
Declaration
public abstract object GenericSample()
Returns
Type | Description |
---|---|
Object | The generated sample |
GetDisplayName(Type)
Returns the display name of a parameter type
Declaration
public static string GetDisplayName(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | A subclass of Parameter |
Returns
Type | Description |
---|---|
String | The parameter type's display name |
Validate()
Validates parameter settings
Declaration
public virtual void Validate()