Files
UnrealEngineUWP/Engine/Plugins/Runtime/GameplayStateTree/Source/GameplayStateTreeModule/Public/Components/StateTreeAIComponent.h
guillaume arruda 98ecd15dd0 Make ContextActorClass of UStateTreeAIComponentSchema default to APawn so that it binds to the pawn instead of the controller by default
Export UStateTreeAIComponentSchema for dll linking
#rnx
#rb mikko.mononen, Yoan.StAmant

[CL 32396844 by guillaume arruda in ue5-main branch]
2024-03-21 08:44:01 -04:00

24 lines
699 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Components/StateTreeComponent.h"
#include "StateTreeAIComponent.generated.h"
/**
* State tree component designed to be run on an AIController.
* It uses the StateTreeAIComponentSchema that guarantees access to the AIController.
*/
UCLASS(ClassGroup = AI, meta = (BlueprintSpawnableComponent))
class GAMEPLAYSTATETREEMODULE_API UStateTreeAIComponent : public UStateTreeComponent
{
GENERATED_BODY()
public:
// BEGIN IStateTreeSchemaProvider
TSubclassOf<UStateTreeSchema> GetSchema() const override;
// END
virtual bool SetContextRequirements(FStateTreeExecutionContext& Context, bool bLogErrors = false) override;
};