Class UtilityPlanner
Finds the best action based on a list of considerations from Agent
Inheritance
UtilityPlanner
Assembly: UtilityAIFramework.dll
Syntax
public class UtilityPlanner : MonoBehaviour
Fields
ExecuteEvenZeroScoreActions
Declaration
public bool ExecuteEvenZeroScoreActions
Field Value
FindActionsOnAwake
Declaration
public bool FindActionsOnAwake
Field Value
IdleDuration
Declaration
public float IdleDuration
Field Value
IncludeInActiveActions
Declaration
public bool IncludeInActiveActions
Field Value
LogTypes
Declaration
public EAgentLogType LogTypes
Field Value
Paused
Declaration
Field Value
ShowLogs
Declaration
Field Value
StartPlanDelay
Declaration
public float StartPlanDelay
Field Value
StartPlanOnAwake
Declaration
public bool StartPlanOnAwake
Field Value
UpdateType
Declaration
public EUpdateType UpdateType
Field Value
Methods
GetActionScore(IUtilityAction, Agent)
Scores an individual action.
Declaration
public virtual float GetActionScore(IUtilityAction action, Agent agent)
Parameters
Returns
GetBestAction(Agent)
Returns the best action from agent.
Declaration
public virtual IUtilityAction GetBestAction(Agent agent)
Parameters
Type |
Name |
Description |
Agent |
agent |
|
Returns
GetRescaleScore(IUtilityAction, Single)
Get rescale score using Dave's Averaging Scheme.
Declaration
protected virtual float GetRescaleScore(IUtilityAction action, float score)
Parameters
Returns