Interface ICustomTraitReward<TTrait1, TTrait2, TTrait3> | AI Planner | 0.2.4-preview.3
docs.unity3d.com
    Show / Hide Table of Contents

    Interface ICustomTraitReward<TTrait1, TTrait2, TTrait3>

    Custom implementation of a reward modifier based on trait data

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

    Trait type

    TTrait2

    Trait type

    TTrait3

    Trait type

    Methods

    RewardModifier(TTrait1, TTrait2, TTrait3)

    Return the value of a reward for 3 given traits

    Declaration
    float RewardModifier(TTrait1 trait1, TTrait2 trait2, TTrait3 trait3)
    Parameters
    Type Name Description
    TTrait1 trait1

    A trait from the action evaluated

    TTrait2 trait2

    A trait from the action evaluated

    TTrait3 trait3

    A trait from the action evaluated

    Returns
    Type Description
    Single

    Reward value modification

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023