Closed Wyverex42 closed 8 months ago
Ah nvm, it works with other textures! There's something wrong with the particular texture I'm trying to use
Heya!
You should be able to just pass a UTexture2D pointer to ImGui::Image
, for example:
ImGui::Image(GEngine->DefaultTexture, FVector2f(512, 512));
Hi,
thanks for this library, it works so much better than another library we were using beforehand!
I'm currently trying to render an image with ImGui. I found one example within the plugin itself where the font atlas is built and then the pointer to the
UTexture2D
is passed as anImTextureID
.So I tried just passing a pointer to a
UTexture2D
(which is set as a default property on another class) toImGui::Image
but nothing is rendered. I also couldn't find where the conversion betweenImTextureID
and the actual draw commands is taking place so I can't say why it's not working.Should this be supported?