Created
January 13, 2017 07:51
-
-
Save ityulkanov/410d1d7e2702ad4ed73aa47cf264227e to your computer and use it in GitHub Desktop.
Positionreport
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Fill out your copyright notice in the Description page of Project Settings. | |
#include "BuildingEscape.h" | |
#include "PositionReport.h" | |
// Sets default values for this component's properties | |
UPositionReport::UPositionReport() | |
{ | |
// Set this component to be initialized when the game starts, and to be ticked every frame. You can turn these features | |
// off to improve performance if you don't need them. | |
PrimaryComponentTick.bCanEverTick = true; | |
// ... | |
} | |
// Called when the game starts | |
void UPositionReport::BeginPlay() | |
{ | |
Super::BeginPlay(); | |
FString ObjectName = GetOwner()->GetFName(); | |
// ... | |
UE_LOG(LogTemp, Warning, TEXT("REporting all %s"), *ObjectName); | |
} | |
// Called every frame | |
void UPositionReport::TickComponent( float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction ) | |
{ | |
Super::TickComponent( DeltaTime, TickType, ThisTickFunction ); | |
// ... | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment