UE5 c++ 多输出节点函数

.h

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

#pragma once

#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "MyActorPins.generated.h"

UENUM(BlueprintType)
enum EOutcomePins
{
	Failure,
	Success
};

UCLASS()
class NEWCOUSTNODE_API AMyActorPins : public AActor
{
	GENERATED_BODY()

public:
	// Sets default values for this actor's properties
	AMyActorPins();

protected:
	// Called when the game starts or when spawned
	virtual void BeginPlay() override;

public:
	// Called every frame
	virtual void Tick(float DeltaTime) override;

	UFUNCTION(BlueprintCallable, meta = (ExpandEnumAsExecs = "Outcome"))
	static void RandomizeActorSize(AActor * Target, bool isSuccess, TEnumAsByte & Outcome);

};

.cpp

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

你可能感兴趣的:(ue5,c++,开发语言)