/** * UnrealLuaDemo 项目自定义 C++ Actor 类型声明示例 */ declare namespace UE { class ALuaDemoActor extends AActor { SpinSpeed: number; BobFrequency: number; BobAmplitude: number; AddCubeLocalRotation(DeltaRotation: FRotator): void; SetCubeVerticalOffset(ZOffset: number): void; SetCubeColor(Color: FLinearColor): void; SetStatusText(Text: string): void; static StaticClass(this: void): UClass; } }