Issues Referencing Texture2D in DataTable

Hi folks,

We are using 4.7.0 and we are having inconsistent results with how our datatables are referencing an asset.

The Issue

We are trying to reference images from a datatable which will be shown on a UMG image panel. We have it working but some images are not appearing and are instead replaced by an empty white box.

Judging by the Datatable we have a formatting issue because images with reference /Game/Ui/Images/… are appearing, but images that are referenced as Texture2D’/Game/Ui/Images/… are not.

34737-step_1_-_view_datatabl_reference.png

However, looking at our datatable in excel everything seems to be in order:

34738-step_2_-_excel.png

And here’s what we get in Notepad:

Name,Title,Text,ImagePC,ImagePS,ImageXBOX
Invisible,,,,,
Empty,,,,,
Casting Mode,Casting Mode,Press to start aiming,"""Texture2D'/Game/Ui/Images/Buttons/PC/F_PC_Button.F_PC_Button'""",,
Casting Mode Turn,Casting Direction,Change Direction,"""Texture2D'/Game/Ui/Images/Buttons/PC/Left_Right_PC_Button.Left_Right_PC_Button'""",,

We have managed to get the formatting correct by doing the following:

  1. Close the DataTable window in UE4
  2. In the content browser right-click on the datatable and reimport the asset
  3. Now right-click on the datatable again and save the DataTable
  4. Open the DataTable in UE4

Now the asset will display the following and all the images will work. Great success! :slight_smile:

34739-step+3+-+reimport+save.png

Until…we close the editor.

If we restart the editor the datatable will revert to the original formatting and the references will break again.

34737-step_1_-_view_datatabl_reference.png

Here’s a copy of the reference view on the datatable to show that the assets are referenced correctly.

Does anyone know what could cause this issue?

Just a question since I have a similar problem loading a Texture2D automatically.
The Texture I’ve imported are an uasset extension.
Therefore, I don’t understand why you specify F_PC_Button.F_PC_Button ?

Where comes from the F_PC_Button extension ?

D.