docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ColorHsvaParameter

    A numeric parameter for generating color samples using HSVA samplers

    Inheritance
    object
    Parameter
    NumericParameter<Color>
    ColorHsvaParameter
    Inherited Members
    NumericParameter<Color>.sampleType
    NumericParameter<Color>.GenericSample()
    NumericParameter<Color>.Validate()
    Parameter.GetDisplayName(Type)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Perception.Randomization.Parameters
    Assembly: Unity.Perception.Runtime.dll
    Syntax
    [Serializable]
    public class ColorHsvaParameter : 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

    hue

    The sampler used for randomizing the hue component of generated samples

    Declaration
    [SerializeReference]
    public ISampler hue
    Field Value
    Type Description
    ISampler

    saturation

    The sampler used for randomizing the saturation component of generated samples

    Declaration
    [SerializeReference]
    public ISampler saturation
    Field Value
    Type Description
    ISampler

    value

    The sampler used for randomizing the value component of generated samples

    Declaration
    [SerializeReference]
    public ISampler value
    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
    Parameter.samplers

    Methods

    Sample()

    Generates an RGBA color sample

    Declaration
    public override Color Sample()
    Returns
    Type Description
    Color

    The generated RGBA sample

    Overrides
    NumericParameter<Color>.Sample()

    SampleHsva()

    Generates an HSVA color sample

    Declaration
    public ColorHsva SampleHsva()
    Returns
    Type Description
    ColorHsva

    The generated HSVA sample

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)