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

  1. Create new game object that inherits from USystemsActorComponent:

    Create component

    And name it BP_TutorialMovement.

  2. Add Value property of Vector type:

    Add properties


Documentation built with Unreal-Doc v1.0.8 tool by PsichiX