I think you didn’t understand what i wrote. You are making a library that has the same name as an engine class. You cannot do that no matter of the engine version.
Pick a new name for the library from UTypes to something unique.
NewName is the new name of the library
You will need to change
Types.h to NewName.h
Types.cpp to NewName.cpp
Types.generated.h to NewName.generated.h
TDS_Skillbox_API UTypes : public UBlueprintFunctionLibrary to TDS_Skillbox_API UNewName : public UBlueprintFunctionLibrary
Then regenerate your project so that the .generated file is rebuilt
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#include "GameTypesClass.generated.h"
/**
*
*/
UCLASS()
class TDS_SKILLBOX_API UGameTypesClass : public UBlueprintFunctionLibrary
{
GENERATED_BODY()
};
GameTypesClass.cpp
// Fill out your copyright notice in the Description page of Project Settings.
#include "GameTypesClass.h"
Just swap the api my project made all uppercase for some reason
Also I would suggest upgrading to visual studio 2022 it fixes the : underline
@3dRaven I copied your code to myself, and the problem disappeared. After checking your and my versions, I found that all the letters in this place (image) are written in uppercase! It was just that.