docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class BooleanParameter

    A numeric parameter for generating boolean samples

    Inheritance
    object
    Parameter
    NumericParameter<bool>
    BooleanParameter
    Inherited Members
    NumericParameter<bool>.sampleType
    NumericParameter<bool>.GenericSample()
    NumericParameter<bool>.Validate()
    Parameter.GetDisplayName(Type)
    Parameter.ResetState()
    Parameter.IterateState(int)
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEngine.Experimental.Perception.Randomization.Parameters
    Assembly: solution.dll
    Syntax
    [Serializable]
    public class BooleanParameter : NumericParameter<bool>

    Fields

    Name Description
    threshold

    A threshold value that transforms random values within the range [0, 1] to boolean values. Values greater than the threshold are true, and values less than the threshold are false.

    value

    The sampler used as a source of random values for this parameter

    Methods

    Name Description
    Sample()

    Generates a boolean sample

    Samples(int, out JobHandle)

    Schedules a job to generate an array of samples

    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)