Interface ICustomTraitReward<TTrait1> | AI Planner | 0.2.4-preview.3
docs.unity.cn
    Show / Hide Table of Contents

    Interface ICustomTraitReward<TTrait1>

    Custom implementation of a reward modifier based on trait data

    Namespace: Unity.AI.Planner.Traits
    Syntax
    public interface ICustomTraitReward<TTrait1>
        where TTrait1 : struct, ITrait
    Type Parameters
    Name Description
    TTrait1

    Trait type

    Methods

    RewardModifier(TTrait1)

    Return the value of a reward for a given trait

    Declaration
    float RewardModifier(TTrait1 trait)
    Parameters
    Type Name Description
    TTrait1 trait

    A trait from the action evaluated

    Returns
    Type Description
    Single

    Reward value modification

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 13 November 2020