Download

Build error when trying to expose a variable to blueprint with UE4.10

Hey everyone, i install today unreal 4.10 and visual studio community(with the epic launcher, i choose custom and install and make sure that Visual C++ was tick).
I made a new project, when i trying to expose a variable to blueprint a build error occurred.


Severity	Code	Description	Project	File	Line
Error	MSB3073	The command ""D:\Programmes\Epic Games\Epic Games\4.10\Engine\Build\BatchFiles\Build.bat" UE410TestEditor Win64 Development "E:\PERSONNEL\Mes Documents\Unreal Projects\UE410Test\UE410Test.uproject" -rocket -waitmutex -2015" exited with code -1.	UE410Test	C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets	37


My code is only:

// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "GameFramework/GameMode.h"
#include "UE410TestGameMode.generated.h"

/**
 * 
 */
UCLASS()
class UE410TEST_API AUE410TestGameMode : public AGameMode
{
	GENERATED_BODY()

		UPROPERTY(BlueprintCallable, EditAnywhere)
		float test;
	
	
};

I’ve been trying few things and made research but apparently I am the only one with this error. The project build fine if i comment the UPROPERTY line.

Thank you for your time and have a good day!

BlueprintCallable doesn’t make sense for floats. It’s for functions that you want to be callable in blueprints. Try just EditAnywhere.

https://docs.unrealengine.com/latest/INT/Programming/Tutorials/VariablesTimersEvents/2/index.html