Advertisement
Guest User

Untitled

a guest
Jun 18th, 2015
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.83 KB | None | 0 0
  1. // Fill out your copyright notice in the Description page of Project Settings.
  2.  
  3. #include "MyProject.h"
  4. #include "MyActorComponent.h"
  5.  
  6.  
  7. // Sets default values for this component's properties
  8. UMyActorComponent::UMyActorComponent()
  9. {
  10.     // Set this component to be initialized when the game starts, and to be ticked every frame.  You can turn these features
  11.     // off to improve performance if you don't need them.
  12.     bWantsBeginPlay = true;
  13.     PrimaryComponentTick.bCanEverTick = true;
  14.  
  15.     // ...
  16. }
  17.  
  18.  
  19. // Called when the game starts
  20. void UMyActorComponent::BeginPlay()
  21. {
  22.     Super::BeginPlay();
  23.  
  24.     // ...
  25.    
  26. }
  27.  
  28.  
  29. // Called every frame
  30. void UMyActorComponent::TickComponent( float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction )
  31. {
  32.     Super::TickComponent( DeltaTime, TickType, ThisTickFunction );
  33.  
  34.     // ...
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement