If a function in a custom code Blueprint Function Library class contains meta = (WorldContext = "WorldContextObject") as a specifier, that function does not appear in context searches in a UObject Blueprint event graph.
Update - TimL
------------------
Another user mentioned that they are seeing very similar results after creating a BlueprintFunctionLibrary in a Blueprint, then try to access those functions from another UObject-derived Blueprint.
Update - TimL
------------------
This has been further narrowed down to only happen in instances where the UFUNCTION takes in a UObject parameter named "WorldContextObject"
UFUNCTION(BlueprintCallable, Category = Game, meta = (WorldContext = "WorldContextObject")) static void SpawnUnit(class UObject* WorldContextObject);
void UMyBlueprintFunctionLibrary::SpawnUnit(class UObject* WorldContextObject)
{
}
RESULT:
The function does not appear in the context menu.
EXPECTED:
The function appears in the context menu.
Head over to the existing Questions & Answers thread and let us know what's up.
8 |
Component | UE - Gameplay - Blueprint |
---|---|
Affects Versions | 4.7.6, 4.9, 4.11.2, 4.13 |
Created | May 15, 2015 |
---|---|
Resolved | Aug 18, 2021 |
Updated | Aug 18, 2021 |