Download

Sytnax for declaring a pointer to a default behaviour tree?

Can someone please advise me to the proper syntax for declaring a pointer to a behaviour tree in C++ and exposing that pointer to BP?

Every combination of either BT or BTcomponent, normal pointer or Tsubobjectptr, they all seem to give me errors and not compile when I try and expose it as a UPROPERTY.

I just need the proper include and the proper declaration (including any necessary UPROPERTY’s please)

It’s just a default pointer on my pawn to the behaviour tree asset that my controller will use when possessing this pawn, so that I don’t need to know my pawn type or behaviour tree on possession.