UE4的反射关键词

详见UE4源码:EngineSourceRuntimeCoreUObjectPublicUObjectObjectMacros.h

常用的有:

参数类:

  EditAnywhere          把参数暴露在蓝图的参数列表(ClassSetting)中

  VisibleDefaultsOnly         把组件的详细信息暴露出来

  BlueprintReadWrite      此参数可以在蓝图中进行修改

  Category=“XXX”        把此参数/函数归为XXX组

  meta = (ExposeOnSpawn = true)  把此参数暴露在生成的时候。例如:UPROPERTY(BlueprintReadOnly, meta = (ExposeOnSpawn = true), Category = "XXX")

函数类:

  BlueprintCallable           此函数可在蓝图中调用

  BlueprintImplementableEvent  此函数需要在蓝图中实现

       

如:

原文地址:https://www.cnblogs.com/mcomco/p/12403107.html