Description

From https://udn.unrealengine.com/questions/444690/redirecting-ustruct-used-as-member-of-userdefineds.html

In 4.20 it was changed so soft object ptrs pointing to classes work correclty with +ClassRedirects lines in [CoreRedirects]. But, the same issue exists with Structs, which have a TSoftObjectPtr<UObject> that is actually always a struct. 

I may fix it to look for struct redirects at the same point it looks for class redirects, or I may fix it specifically in user defined struct loading. It's odd that it's stored as a <UObject> when it's actually a <UStruct>

 

Steps to Reproduce
  1. Add a native struct to your project called OldNativeStruct
  2. Create a User Defined Struct that uses that native struct, save it
  3. In C++, rename the native struct to NewNativeStruct
  4. Add a +StructRedirects=(OldName="/Script/GameName/OldNativeStruct",NewName="/Script/GameName/NewNativeStruct") to the [CoreRedirects] seciton in an engine ini
  5. Reload editor and reopen user struct, it will have a broken reference

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-61911 in the post.

0
Login to Vote

Fixed
ComponentUE - Gameplay - Blueprint
Affects Versions4.194.20
Target Fix4.21
Fix Commit4221360
Main Commit4289353
Release Commit4399518
CreatedJul 18, 2018
ResolvedJul 18, 2018
UpdatedOct 2, 2018
View Jira Issue