Functions
To expose C# methods to Unreal Engine, whether for Blueprint calls or Blueprint overrides. You must apply the [UFunction] attribute.
Blueprint-Callable Functions
// Can be called from BP
[UFunction(FunctionFlags.BlueprintCallable)]
public void MyBPCallableFunction(IList<int> myList)
{
}Blueprint-Overridable Functions (Events)
// Declares a function that Blueprint subclasses may override.
[UFunction(FunctionFlags.BlueprintEvent)]
public partial void MyBPOverridableFunction(IList<int> myList);
// The default implementation on the C# side.
public partial void MyBPOverridableFunction_Implementation(IList<int> myList)
{
// Default behavior
}
Last updated