Advertisement
Guest User

MySceneComponent.h

a guest
Jul 23rd, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.69 KB | None | 0 0
  1. // Fill out your copyright notice in the Description page of Project Settings.
  2.  
  3. #pragma once
  4.  
  5. #include "Components/SceneComponent.h"
  6. #include "MySceneComponent.generated.h"
  7.  
  8.  
  9. UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
  10. class HOWTO_COMPONENTS_API UMySceneComponent : public USceneComponent
  11. {
  12.     GENERATED_BODY()
  13.  
  14. public:
  15.     // Sets default values for this component's properties
  16.     UMySceneComponent();
  17.  
  18. protected:
  19.     // Called when the game starts
  20.     virtual void BeginPlay() override;
  21.  
  22. public:
  23.     // Called every frame
  24.     virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
  25.     float m_time;
  26.        
  27.    
  28. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement