Including UObjects in Slate widgets

I’m currently altering the source for virtual joysticks, which is a slate widget. What I want to do, is have a UFloatCurve as a property in the widget, which the user can set in the properties of the widget. I can’t figure out how to include UFloatCurve though, it never recognizes the path. I’ve seen it included in other slate based files like SlateResources though. Is there a way to include any UObject type in a slate widget, or is there some equivalent curve type in slate I can use?

I’m still trying to figure out how to make this work. In the SVirtualJoystick.cpp, SlatePrivatePCH.h is included, which eventually includes CoreUObject.h. Is this not sufficient for linking UObjects?

I cannot seem to find a UFloatCurve class anywhere. However there is a class called UCurveFloat. Assuming that’s what you want to use it is part of the ‘Engine’ module. So you’ll probably need to add that to your dependencies in the Slate.Build.cs file.

Haha freudian slip. Yes that worked, thank you very much.

Actually there seems to be another problem that stemmed from this. I’m now getting this error: EXEC : error : Action graph contains cycle!

I’m adding in the Engine dependency in the same way that this page is: A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums

The only difference is that I’m altering Slate.Build.cs in the UE4 project since I’m altering base code. Not sure how to fix this.

Also, it only happens on Editor builds.