# Accessing Texture Size Property crashes editor

**URL:** <https://forums.unrealengine.com/t/accessing-texture-size-property-crashes-editor/352966>\
**Category:** Asset Creation\
**Tags:** unreal-engine, bug-report, question\
**Created:** [April 5, 2016, 1:11am UTC](https://forums.unrealengine.com/t/accessing-texture-size-property-crashes-editor/352966 "2016-04-05T01:11:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_33bb0bed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33bb0bed](https://forums.unrealengine.com/u/anonymous_user_33bb0bed)\
**Post date:** [April 5, 2016, 1:11am UTC](https://forums.unrealengine.com/t/accessing-texture-size-property-crashes-editor/352966/1 "2016-04-05T01:11:09Z")

</div>

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.

 ![85286-error.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/2/1/d2180204a1af55256b4f0a30fb70bf761c203bc4.jpeg)

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [April 5, 2016, 5:48pm UTC](https://forums.unrealengine.com/t/accessing-texture-size-property-crashes-editor/352966/2 "2016-04-05T17:48:38Z")

</div>

Hi pushmatrix,

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

-Tim

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33bb0bed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33bb0bed](https://forums.unrealengine.com/u/anonymous_user_33bb0bed)\
**Post date:** [May 20, 2016, 6:50pm UTC](https://forums.unrealengine.com/t/accessing-texture-size-property-crashes-editor/352966/3 "2016-05-20T18:50:09Z")

</div>

Hey Tim,

Any update on this? Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [May 20, 2016, 8:06pm UTC](https://forums.unrealengine.com/t/accessing-texture-size-property-crashes-editor/352966/4 "2016-05-20T20:06:06Z")

</div>

Hi ,

This should be fixed already in the 4.12 previews.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33bb0bed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33bb0bed](https://forums.unrealengine.com/u/anonymous_user_33bb0bed)\
**Post date:** [May 23, 2016, 9:32pm UTC](https://forums.unrealengine.com/t/accessing-texture-size-property-crashes-editor/352966/5 "2016-05-23T21:32:41Z")

</div>

Thanks! I’ll have to try out the preview
