# Cannot chose material in a Structure or DataTable

**URL:** <https://forums.unrealengine.com/t/cannot-chose-material-in-a-structure-or-datatable/315620>\
**Category:** Rendering\
**Tags:** Structure, unreal-engine, bug-report, question\
**Created:** [April 19, 2015, 7:35pm UTC](https://forums.unrealengine.com/t/cannot-chose-material-in-a-structure-or-datatable/315620 "2015-04-19T19:35:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![InfectedFPS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@InfectedFPS](https://forums.unrealengine.com/u/InfectedFPS)\
**Post date:** [April 19, 2015, 7:35pm UTC](https://forums.unrealengine.com/t/cannot-chose-material-in-a-structure-or-datatable/315620/1 "2015-04-19T19:35:50Z")

</div>

Using 4.7.5. I’m trying to create a structure and part of structure is a material. However I cannot set a default material or one in datatable. Not sure if this is intended or not.

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/7/a/d7a1786116aca23d1719954b099f75461f19fb5f.png)  
 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/e/71ec728b3a8a2d3a5c433c0ac0f8255bc9452bcb.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [April 20, 2015, 2:10pm UTC](https://forums.unrealengine.com/t/cannot-chose-material-in-a-structure-or-datatable/315620/2 "2015-04-20T14:10:41Z")

</div>

Hi InfectedFPS,

At moment, Structs cannot set default variables for several variable types, including StaticMesh, Texture, Material, and Class. We have a bug report in for this (UE-9407), and I’ve added your notes to it as well. For now, since Struct can’t set a default value for these variables, DataTable will return a Null value. I will post here when I see any update on bug report. Thanks!

---

<div class="post-metadata">

**Author:** ![InfectedFPS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@InfectedFPS](https://forums.unrealengine.com/u/InfectedFPS)\
**Post date:** [April 20, 2015, 2:26pm UTC](https://forums.unrealengine.com/t/cannot-chose-material-in-a-structure-or-datatable/315620/3 "2015-04-20T14:26:26Z")

</div>

Thanks for info. Hope to see this in a future release.

---

<div class="post-metadata">

**Author:** ![Jamie\_Dale](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jamie_dale/32/1165413_2.png) [@Jamie\_Dale](https://forums.unrealengine.com/u/Jamie_Dale)\
**Post date:** [April 24, 2015, 12:50pm UTC](https://forums.unrealengine.com/t/cannot-chose-material-in-a-structure-or-datatable/315620/4 "2015-04-24T12:50:05Z")

</div>

You can edit these properties in data table editor in 4.8, however change to UDS editor missed branching point so won’t appear until 4.9.

[This is change](https://github.com/EpicGames/UnrealEngine/commit/a3765ae3f27295b7e781847d3e4b73833b5bd0ac) if you’re running your own source build once 4.8 is released.

---

<div class="post-metadata">

**Author:** ![VictorC](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VictorC](https://forums.unrealengine.com/u/VictorC)\
**Post date:** [April 24, 2015, 4:43pm UTC](https://forums.unrealengine.com/t/cannot-chose-material-in-a-structure-or-datatable/315620/5 "2015-04-24T16:43:59Z")

</div>

I don’t quite understand which part will work in 4.8 and what’s scheduled for 4.9 - could you clarify? (And what’s UDS?)  
Also, link is a 404 for me…  
Thanks!

---

<div class="post-metadata">

**Author:** ![Jamie\_Dale](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jamie_dale/32/1165413_2.png) [@Jamie\_Dale](https://forums.unrealengine.com/u/Jamie_Dale)\
**Post date:** [April 24, 2015, 5:53pm UTC](https://forums.unrealengine.com/t/cannot-chose-material-in-a-structure-or-datatable/315620/6 "2015-04-24T17:53:48Z")

</div>

Ah, sorry. UDS is a User Defined Struct 🙂

Your first screenshot is UDS editor. That will allow you to set these properties in 4.9 (or 4.8 with my change merged in).

Your second screenshot is data table editor. That will allow you to set these properties in 4.8.

GitHub link will be a 404 unless you’re logged in to GitHub with a GutHub account that’s been linked from your Unreal Engine account. If that doesn’t make sense to you, don’t worry about it 🙂

---

<div class="post-metadata">

**Author:** ![InfectedFPS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@InfectedFPS](https://forums.unrealengine.com/u/InfectedFPS)\
**Post date:** [April 24, 2015, 6:21pm UTC](https://forums.unrealengine.com/t/cannot-chose-material-in-a-structure-or-datatable/315620/7 "2015-04-24T18:21:18Z")

</div>

That’s awesome to hear, Jamie. Can’t wait for 4.8. ( heh that rhymes)

\<3 you folks at Epic.
