Skip to content

Instantly share code, notes, and snippets.

@we-yu
Last active September 5, 2016 17:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save we-yu/a52b4fab2e28f007afddcec320a234ab to your computer and use it in GitHub Desktop.
Save we-yu/a52b4fab2e28f007afddcec320a234ab to your computer and use it in GitHub Desktop.
Unreal Engine C++ Codings ref: http://qiita.com/we-yu/items/f25f5a6842d272ba6882
UPROPERTY(EditAnywhere)
int32 inputVal1;
UPROPERTY(EditAnywhere, Category = "User Input")
int32 inputVal2;
public:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Damage")
int32 TotalDamage;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Damage")
float DamageTimeInSeconds;
UPROPERTY(BlueprintReadOnly, VisibleAnywhere, Transient, Category = "Damage")
float DamagePerSecond;
UFUNCTION(BlueprintCallable, Category = "Damage")
void CalculateValues();
AEditableSpotLightCpp();
#include "Engine.h"
if (GEngine)
{
const int32 AlwaysAddKey = -1;
// Viewport上にメッセージを表示する
// キー, 表示時間, 文字色, 表示文字
GEngine->AddOnScreenDebugMessage(AlwaysAddKey, 5.0f, FColor::Yellow, "MESSAGE");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment