****.h
UFUNCTION(Blueprintalbe,BlueprintImplementableEvent,category=“test”)
void testWrite();
//Blueprintable:蓝图可以调用此函数
// BlueprintImplementableEvent:蓝图里面重写函数,c++里面不可以重写
// Category:分组
UFUNCTION(BlueprintNativeEvent, BlueprintCallable, category = “test”)
void chihe();
//BlueprintNativeEvent:c++里面写定义,蓝图也可以重写。
UFUNCTION(Blueprintype)
结构体等
UPROPERTY(EditAnywhere,BlueprintReadWrite)
int test;
instance:实例可编辑,default:细节可编辑,可读写
.cpp//定义
void A::chihe_Implementation()
{
}