Accessing Texture Size Property crashes editor

Hi there.

I’m trying to modify a material based on the size of a texture passed in. I have discovered the “Texture Property” node within a material function that lets me get the Texture Size. However, anytime I access it, it crashes the editor.

I’ve included a screenshot of the steps to reproduce. It’s a contrived example, but it’s the simplest one I could produce to cause the issue. Note that if I do the same thing except instead of using a texture2D input I use a TextureObject, everything goes fine. It seems like as soon as I make the texture an input to my function (which can only be in the form of a Texture2D), it crashes the editor.

Could it have something to do with the texture being undefined at first, and so the texture size returns an invalid number?

Any help would be greatly appreciated.

Hi pushmatrix,

I’ve submitted UE-29089 for this to be investigated. Thank you for the clear repro steps.

-Tim

Hi ,

This should be fixed already in the 4.12 previews.

Hey Tim,

Any update on this? Thanks :slight_smile:

Thanks! I’ll have to try out the preview