Skip to content

Instantly share code, notes, and snippets.

@ityulkanov
Created January 13, 2017 07:51
Show Gist options
  • Save ityulkanov/410d1d7e2702ad4ed73aa47cf264227e to your computer and use it in GitHub Desktop.
Save ityulkanov/410d1d7e2702ad4ed73aa47cf264227e to your computer and use it in GitHub Desktop.
Positionreport
// 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