docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ConstantSampler

    Returns a constant value when sampled

    Inheritance
    object
    ConstantSampler
    Implements
    ISampler
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEngine.Perception.Randomization.Samplers
    Assembly: solution.dll
    Syntax
    [Serializable]
    public class ConstantSampler : ISampler

    Constructors

    Name Description
    ConstantSampler()

    Constructs a ConstantSampler

    ConstantSampler(float)

    Constructs a new ConstantSampler

    Fields

    Name Description
    value

    The value from which samples will be generated

    Methods

    Name Description
    Sample()

    Generates one sample

    Validate()

    Validates that the sampler is configured properly

    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)