Is there a redirect that would work when a simple float UPROPERTY is moved into a struct?
Old Versoin…
UCLASS(Abstract, EditInlineNew, HideCategories="Internal")
class ABLECORE_API USomeClass : public UObject
{
GENERATED_BODY()
protected:
UPROPERTY(EditInstanceOnly, Category = "Timing", meta=(DisplayName = "Start Time"))
float m_StartTime;
};
New Versoin…
USTRUCT(BlueprintType)
struct ABLECORE_API FRelativeTime
{
GENERATED_BODY()
public:
UPROPERTY(BlueprintReadWrite, EditAnywhere)
float Offset = 0.0f;
};
UCLASS(Abstract, EditInlineNew, HideCategories="Internal")
class ABLECORE_API USomeClass : public UObject
{
GENERATED_BODY()
protected:
UPROPERTY(EditInstanceOnly, Category = "Timing", meta=(DisplayName = "Start Time"))
FRelativeTime m_StartTime;
};
m_StartTime has been changed to now be a struct and the float value is now a member called Offset.
I tried a few different variations of this, but haven’t found the magic combination…
+PropertyRedirects=(OldName="/Script/AbleCore.AblAbilityTask.m_StartTime",NewName="/Script/AbleCore.AblAbilityTask.m_StartTime.Offset")
If not, is there some magic I can do in an overridden version of Serialize where I could catch this myself?
Thanks,
-Randy