Setup component
C++
-
Tutorial/Components/TutorialMovementComponent.h:#pragma once #include "CoreMinimal.h" #include "Systems/Public/SystemsComponent.h" #include "TutorialMovementComponent.generated.h" UCLASS(BlueprintType, Blueprintable, Meta = (BlueprintSpawnableComponent)) class TUTORIAL_API UTutorialMovementComponent : public USystemsActorComponent { GENERATED_BODY() public: UPROPERTY(EditAnywhere, BlueprintReadWrite) FVector Value = FVector(0); }; -
Tutorial/Components/TutorialMovementComponent.cpp:#include "Tutorial/Components/TutorialMovementComponent.h"
Blueprint
-
Create new game object that inherits from
USystemsActorComponent:
And name it
BP_TutorialMovement. -
Add
Valueproperty ofVectortype:
Documentation built with Unreal-Doc v1.0.8 tool by PsichiX