Skip to content

Instantly share code, notes, and snippets.

TSharedPtr<FJsonObject> UJsonFunctionLibrary::LoadJsonObject(const FString& Path)
{
const FString JsonFullPath = FPaths::ProjectDir().Append(Path).Append(TEXT(".json"));
auto LoadError = [&JsonFullPath]()
{
UE_LOG(LogTemp, Error, TEXT("Failed LoadJson : %s"), *JsonFullPath);
return nullptr;
};
@PaperSloth
PaperSloth / ExampleTickActor.cpp
Last active October 31, 2018 14:36
Tick説明
// Copyright(c) 2018 PaperSloth
#include "ExampleTickActor.h"
AExampleTickActor::AExampleTickActor()
{
PrimaryActorTick.bCanEverTick = true;
}
void AExampleTickActor::BeginPlay()
@PaperSloth
PaperSloth / ExampleActor.cpp
Created September 24, 2018 06:55
UnrealC++でTimerを使用した処理の書き方
// Copyright(c) 2018 PaperSloth
#include "ExampleActor.h"
#include "TimerManager.h"
AExampleActor::AExampleActor()
{
}
void AExampleActor::BeginPlay()