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.
Why does the REMOVE method of map container remove elements have memory leaks?
How does TextureRenderTarget2D get TArray<uint8> type data?
What is the cause of the packaging error falling back to 'GameUserSettings' in ue5?
How to delete some elements correctly when deleting an array loop?
What controls of umg have mouse wheel events in UE4.27?
What is the difference between Camera and CineCamera?
How to implement springarm components to scale according to mouse position in spawn?
How to assign a value to a member of UMG's UMaterialInterface pointer type in C++?
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 |