docs.unity3d.com
    目次を表示する/隠す

    Struct RatingConfiguration

    Defines how a condition's match rating will be evaluated

    Namespace: Unity.MARS.Conditions
    Syntax
    [MovedFrom("Unity.MARS")]
    public struct RatingConfiguration

    Constructors

    RatingConfiguration(Single, Single)

    Defines how a condition's match rating will be evaluated

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

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

    Single center

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

    Fields

    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
    Single

    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
    Single

    MaxDeadZone

    Maximum value for the dead zone in a ratings configuration.

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

    MaximumCenter

    Maximum value for the center of a ratings configuration

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

    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.001F
    Field Value
    Type Description
    Single
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)