Classes
To make a C# class visible to Unreal Engine’s reflection system (and therefore Blueprint, UHT, and the gameplay framework), the class must:
Be marked with the
[UClass]attribute.Inherit from a valid
UObject-based type, such asAActor,UActorComponent,USceneComponent, or any other Unreal class exposed through UnrealSharp.Be declared as a
partialclass, so UnrealSharp can generate its companion code.
[UClass]
public partial class AMyShowcaseClass : AActor
{
public override void BeginPlay()
{
base.BeginPlay();
}
}
Last updated