docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method RequestDecision

    RequestDecision()

    Requests a new decision for this agent.

    Declaration
    public void RequestDecision()
    Remarks

    Call RequestDecision() whenever an agent needs a decision. You often want to request a decision every environment step. However, if an agent cannot use the decision every step, then you can request a decision less frequently.

    You can add a DecisionRequester component to the agent's GameObject to drive the agent's decision making. When you use this component, do not call RequestDecision() separately.

    Note that this function calls RequestAction(); you do not need to call both functions at the same time.

    In This Article
    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