hi! I want to make a float curve editable from the blueprint I use it in. instead of having to make it a separate asset and openning it in a separate window.
I want this for my custom vehicle class, there is several curves for the setup and doing this would mean I do not need to create 4 or 5 float curves in the content browser for every single car I make using my custom class. Anyone knows how to do this?
hey, im re-doing the class in c++, is there any way of setting keys in c++ or do I need to create a curve in the editor and asign it as the selected external curve?
Hi all,
I want to know how to draw the red curve like the screenshot above.
FRuntimeFloatCurve can create a graph but it does not contain a editable curves.
Thanks.
Dayamn, you got my hopes up. You can see and modify the curve yes, but unfortunately you can’t do anything with the variable (can’t get the curve values):
Maybe with a bit of C++ in a C++ Blueprint Function Library (did not test it in a packaged game):
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#include "MyBlueprintFunctionLibrary.generated.h"
/**
*
*/
UCLASS()
class GAMEPLAYABILITYTEST_API UMyBlueprintFunctionLibrary : public UBlueprintFunctionLibrary
{
GENERATED_BODY()
public:
UFUNCTION(BlueprintCallable)
static float GetRuntimeFloatCurveValue(const FRuntimeFloatCurve& Curve, float Time);
};
A bit late for the reply, but if you want to do manipulations on the curve directly in c++ you need to use the FInterpCurveVector or FInterpCurveFloat to set a curve. FInterpCurve_Name Objects are the underlying objects of all UCurve_Name assets. So you can use that directly instead in c++ to create a local curve