Changed TObjectPtr<FCogImguiContext> to FCogImguiContext* as TObjectPtr should be used with UObject dervied classes only

This commit is contained in:
Elhoussine Mehnik
2023-12-19 17:44:16 +01:00
parent 18283d4187
commit ea100dbf77
3 changed files with 3 additions and 3 deletions
@@ -41,7 +41,7 @@ protected:
void AddMousePosEvent(const FVector2D& MousePosition) const; void AddMousePosEvent(const FVector2D& MousePosition) const;
TObjectPtr<FCogImguiContext> Context = nullptr; FCogImguiContext* Context = nullptr;
TObjectPtr<UPlayerInput> PlayerInput; TObjectPtr<UPlayerInput> PlayerInput;
@@ -20,7 +20,7 @@ struct ImPlotContext;
struct COGIMGUI_API FImGuiViewportData struct COGIMGUI_API FImGuiViewportData
{ {
TWeakPtr<SWindow> Window = nullptr; TWeakPtr<SWindow> Window = nullptr;
TObjectPtr<FCogImguiContext> Context = nullptr; FCogImguiContext* Context = nullptr;
TWeakPtr<SCogImguiWidget> Widget = nullptr; TWeakPtr<SCogImguiWidget> Widget = nullptr;
}; };
@@ -57,7 +57,7 @@ protected:
void RefreshVisibility(); void RefreshVisibility();
TObjectPtr<FCogImguiContext> Context = nullptr; FCogImguiContext* Context = nullptr;
TSharedPtr<SWindow> Window = nullptr; TSharedPtr<SWindow> Window = nullptr;