Ethidium
(Ethidium)
1
Hi, I’d like to create a blueprint function that takes a texture2d and some coordinates as an input. I can add input pins for basic data types:
UFUNCTION(BlueprintCallable, Category = "MyCategory")
int ReadMap(int x, int y,);
but how do I add a texture2d as an input?
thanks
Kehel18
(Kehel18)
2
Just use pointer - UTexture2D* is Ok.
UFUNCTION(BlueprintCallable, Category = "Test")
void Fun(UTexture2D* texture, int32 X, int32 Y) {}
Ethidium
(Ethidium)
3
Ah fantastic, thanks for the quick reply. That works perfectly - guess I need to go and educate myself about pointers now!