docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor CategoricalParameter

    CategoricalParameter()

    Constructs a new categorical parameter

    Declaration
    protected CategoricalParameter()

    CategoricalParameter(IEnumerable<T>)

    Create a new categorical parameter from a list of categories with uniform probabilities

    Declaration
    protected CategoricalParameter(IEnumerable<T> categoricalOptions)
    Parameters
    Type Name Description
    IEnumerable<T> categoricalOptions

    List of categories

    Exceptions
    Type Condition
    ArgumentException

    CategoricalParameter(IEnumerable<(T, float)>)

    Creates a new categorical parameter from a list of categories and their associated probabilities

    Declaration
    protected CategoricalParameter(IEnumerable<(T, float)> categoricalOptions)
    Parameters
    Type Name Description
    IEnumerable<(T, float)> categoricalOptions

    List of categories and their associated probabilities

    Exceptions
    Type Condition
    ArgumentException
    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)