Oh sorry I’ve been using the latest version of the code on ue5-main that I forgot what the API looked like in 5.3.
Look at these functions on the Policy:
/**
* Load a snapshots weights into this policy.
* @param File The snapshot file.
*/
UFUNCTION(BlueprintCallable, Category = "LearningAgents", meta = (RelativePath))
void LoadPolicyFromSnapshot(const FFilePath& File);
/**
* Save this policys weights into a snapshot.
* @param File The snapshot file.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "LearningAgents", meta = (RelativePath))
void SavePolicyToSnapshot(const FFilePath& File) const;