Hey guys,
i try to create a custom mesh using the UCustomMeshComponent. I have a pretty simple class:
#pragma once
#include "CoreMinimal.h"
#include "CustomMeshComponent.h"
#include "GameFramework/Actor.h"
#include "CustomTestMeshActor.generated.h"
UCLASS()
class TESTPROJECT_API ACustomTestMeshActor : public AActor
{
GENERATED_BODY()
// Constructor
public:
// Sets default values for this actor's properties
ACustomTestMeshActor();
// Protected functions
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;
// Public functions
public:
// Called every frame
virtual void Tick(float DeltaTime) override;
// Private members
private:
UCustomMeshComponent* m_meshComponent;
TArray<FVector> m_vertices;
TArray<int32> m_indices;
TArray<FVector> m_normals;
TArray<FVector2D> m_uvs;
TArray<FProcMeshTangent> m_tangents;
};
Unfortunately when i compile the project i get an error, that FProcMeshTangent is not declared. Isn’t it declared in CustomMeshComponent.h? Do i miss something like a aditional include?
Thanks and cheers
DeKande