38 #include "CoherentBaseComponent.h"
39 #include "CoherentUIMeshData.h"
40 #include "CoherentUIComponent.generated.h"
54 UCLASS(ClassGroup = UI, hidecategories = Object, editinlinenew, meta = (BlueprintSpawnableComponent), MinimalAPI)
57 GENERATED_UCLASS_BODY()
61 bool EnsureMeshData();
63 TArray<FCoherentUIMeshData> MeshData;
65 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category =
"View")
68 virtual void InitializeComponent()
override;
69 virtual void TickComponent(
float DeltaTime,
enum ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction)
override;
71 virtual void OnViewCreated(Coherent::UI::View* view)
override;
72 COHERENTUIPLUGIN_API
bool HasRequestedView()
const;
74 virtual void RegisterComponentTickFunctions(
bool bRegister)
override;
75 virtual void TickCustom(FCoherentComponentTickFunction*
function)
override;
78 void CreateView(
const Coherent::UI::ViewInfo& info,
const FString& url);
79 void SetupUITextures()
const;
81 bool bDidTryToCreateView;
82 bool bIsLoadingMeshData;
85 void LoadMeshData(
const TArray<TWeakObjectPtr<UStaticMeshComponent>>& Meshes);
Definition: CoherentBaseComponent.h:76
Definition: CoherentUIComponent.h:55