docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct RatingConfiguration

    Defines how a condition's match rating will be evaluated

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.MARS.Conditions
    Assembly: Unity.MARS.dll
    Syntax
    [MovedFrom("Unity.MARS")]
    public struct RatingConfiguration

    Constructors

    RatingConfiguration(float, float)

    Defines how a condition's match rating will be evaluated

    Declaration
    public RatingConfiguration(float deadZone, float center = 0.5)
    Parameters
    Type Name Description
    float deadZone

    Defines a portion of the range around the center, inside which the data is considered a perfect match

    float center

    Defines the point in the 0-1 range which will receive the highest possible match rating

    Fields

    MaxDeadZone

    Maximum value for the dead zone in a ratings configuration.

    Declaration
    public const float MaxDeadZone = 0.99
    Field Value
    Type Description
    float

    MaximumCenter

    Maximum value for the center of a ratings configuration

    Declaration
    public const float MaximumCenter = 0.999
    Field Value
    Type Description
    float

    MinimumCenter

    Minimum value for the center of a ratings configuration. If the center is 0 it can mess up the calculation and produce NaN errors, so prevent that

    Declaration
    public const float MinimumCenter = 0.001
    Field Value
    Type Description
    float

    center

    Defines the point in the 0-1 range which will receive the highest possible match rating

    Declaration
    public readonly float center
    Field Value
    Type Description
    float

    deadZone

    Defines a portion of the range around the center, inside which the data is considered a perfect match

    Declaration
    public readonly float deadZone
    Field Value
    Type Description
    float
    In This Article
    Back to top
    Copyright © 2025 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)