Hi,
I am a newbie in blueprint scripting. Here’s a small function I have written in C++ in custom class which is extension of usual BlueprintsFunctionLibrary.
It however doesn’t show up in Blueprints Editor. I see there are tons of questions in Google related to that and I have tried out a few solutions mentioned there such as -
- Close the editor and reopen.
- Make sure UFUNCTION() and GENERATED_UBODY_CLASS()
- I looked inside example code of KismetArrayLibrary (.h and .cpp files) and made sure that that it maintains syntax similar to that library.
I am still digging through answers and trying to find a logical reason for this. However I am stuck for few days now and any help is greatly appreciated.
Thanks in advance…!
.h file :-
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "MatrixUpdate.generated.h"
UCLASS()
class UMatrixUpdate : public UBlueprintFunctionLibrary
{
GENERATED_UCLASS_BODY()
UFUNCTION(BlueprintCallable, CustomThunk, meta=(DisplayName = "Matrixupdate", CompactNodeTitle = "MATRIXUPDATE", ArrayParm="TargetArray"), Category="XYZBPLibrary")
static void MartixUpdateOnInputStrokes(const TArray<int32>& InArray, int32 Command);
}
.cpp file head :-
// Fill out your copyright notice in the Description page of Project Settings.
#include "KismetArrayLibrary.h"
#include "MatrixUpdate.h"
void MatrixUpdate::MatrixUpdateOnKeystrokes(
const TArray<int32>& InArray,
int32 command
){
...
...
...
}
,