MyActor.h 604 B

12345678910111213141516171819202122232425262728
  1. // Fill out your copyright notice in the Description page of Project Settings.
  2. #pragma once
  3. #include "CoreMinimal.h"
  4. #include "GameFramework/Actor.h"
  5. #include "MyActor.generated.h"
  6. UCLASS()
  7. class LOCALIZATIONMODULE_API AMyActor : public AActor
  8. {
  9. GENERATED_BODY()
  10. UFUNCTION(BlueprintCallable, Category = "MyCategory")
  11. void SetViewportSize();
  12. public:
  13. // Sets default values for this actor's properties
  14. AMyActor();
  15. protected:
  16. // Called when the game starts or when spawned
  17. virtual void BeginPlay() override;
  18. public:
  19. // Called every frame
  20. virtual void Tick(float DeltaTime) override;
  21. };