Looking for Method in a class

Hey guys,

I want to create a item interaction system.
I have a Basic class named: MyInteraction.
GENERATED_BODY()

		/**How should the interaction be displayed on the screen? */
	UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, Category = Interactionconfig)
		FString interactionName;

	/** What is the function to be called.*/
	UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, Category = Interactionconfig)
		FString interactionMethod;

So now: How can i search for a function by given the name and the class.

Any ideas?

Doktor Gass :slight_smile:

Hey, thanks for your answer :slight_smile:

I will be a c++ function in another class. I can’t find a “FindFunction” function in the Unreal Engine docs, can you post link pls? :slight_smile:

Very vague question. From where are you trying to find the function, is it a c++ or blueprint function? There are a lot of ways to do this. The FindFunction function might be helpful in what you are trying to do, but I do not suggest doing it with strings if you are not very familiar with the engine/coding.

link text, but you would have to also do FindObject with the string in runtime. Try searching in the answerhub or online for an example of someone using either one of these functions to understand how to use them. Also there might be way simpler and easier ways to do what you are trying to do, so I suggest also thinking about it.