New: 36 free tools for Unreal Engine and Unity developers.Try them →

UPROPERTY & UFUNCTION Specifier Builder

Tick the specifiers you need and copy the Unreal C++ macro, with conflicts flagged and the extra replication or RPC code generated.

  • ✓ Free, no sign-up
  • ✓ Made for Unreal Engine
  • ✓ Runs in your browser
Editor
Editable in the Details panel on the Blueprint defaults and on every placed instance.
Editable only on the class defaults (Blueprint editor), not on placed instances.
Editable only on instances placed in a level, not on the class defaults.
Shown read-only everywhere. Common for component pointers: the component’s own properties stay editable.
Shown read-only on the class defaults only.
Shown read-only on placed instances only.
Groups the property in the Details panel and Blueprint menus. Use | for sub-categories, e.g. "Combat|Damage".
Hidden under the “advanced” arrow of its category.
Always visible in its category, even if the category is advanced by default.
Removes the Clear (None) option for object references.
Arrays can be edited but not resized in the Details panel.
Can be animated by Sequencer tracks.
Value is added to the asset registry so assets can be filtered by it without loading them.
Object references create a unique instance per owner, editable inline (use with EditInlineNew classes).
Blueprint
Blueprints can get and set the value.
Blueprints can get but not set the value.
Blueprint reads go through this UFUNCTION (BlueprintPure/BlueprintGetter) instead of the variable.
Blueprint writes go through this UFUNCTION, so you can validate or react to changes.
For multicast delegates: Blueprints can bind events to it (“Assign” / “Bind Event”).
For multicast delegates: Blueprints can call (broadcast) it.
Networking
Value is replicated from the server to clients. Register it in GetLifetimeReplicatedProps with DOREPLIFETIME.
Replicated, and calls this UFUNCTION on clients when a new value arrives.
For struct members: skip this member when the struct is replicated.
Saving and config
Included when the object is serialized with the SaveGame archive flag (ArIsSaveGame), for example in custom save systems.
Not saved or loaded; starts zero-filled. Use for runtime-only state.
Reset to default when the object is duplicated (copy and paste, Play In Editor).
Loaded from and saved to the class’s config (.ini) file. The class needs UCLASS(Config=...).
Like Config, but subclasses cannot override the value in their own section.
meta = ( … )
Name shown in the editor and Blueprint nodes.
Tooltip text (C++ comments above the declaration are used by default).
Lowest value that can be entered.
Highest value that can be entered.
Slider minimum (values outside can still be typed unless clamped).
Slider maximum.
Shows units in the Details panel, e.g. cm, s, kg, Degrees, Percent.
Only editable when this bool (or expression) is true.
Hide instead of grey out when EditCondition is false.
On a bool used as an EditCondition: shows it as a checkbox next to the other property.
Lets Blueprints access a private C++ property marked BlueprintReadWrite/ReadOnly.
For FVector/FTransform: shows a 3D widget in the viewport to edit the value.
Appears as an input pin on Spawn Actor / Construct Object nodes (needs a Blueprint-visible property).
Multi-line text box for FString / FText.
For arrays of structs: use this member as each element’s title in the Details panel.

Declaration

    Header (.h)
    Source (.cpp)

    How Unreal reflection macros work

    UPROPERTY, UFUNCTION, UCLASS, USTRUCT and UENUM mark C++ code for Unreal’s reflection system. The Unreal Header Tool reads them before compiling and generates the code that lets the editor, Blueprints, saving, garbage collection and networking see your variables and functions. The words inside the brackets are specifiers; the meta = (…) part holds extra editor hints.

    The specifiers you will use most

    GoalUse
    Tweak a value in the editor and in BlueprintsUPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "…")
    Set per class, not per placed actorEditDefaultsOnly
    A component pointerUPROPERTY(VisibleAnywhere, BlueprintReadOnly)
    Call C++ from BlueprintsUFUNCTION(BlueprintCallable)
    A getter node without exec pinsUFUNCTION(BlueprintPure) on a const function
    Let designers implement an eventBlueprintImplementableEvent or BlueprintNativeEvent
    Keep an object alive (garbage collection)Any UPROPERTY() on the UObject pointer
    Sync a value to clientsReplicated or ReplicatedUsing = OnRep_X

    Rules the builder checks for you

    • Only one of each group: EditAnywhere / EditDefaultsOnly / VisibleAnywhere…, BlueprintReadWrite / BlueprintReadOnly, Server / Client / NetMulticast, Reliable / Unreliable.
    • Private properties exposed to Blueprints need AllowPrivateAccess.
    • RPCs need Reliable or Unreliable and an _Implementation; WithValidation also needs _Validate.
    • BlueprintNativeEvent needs _Implementation; BlueprintImplementableEvent must not have a C++ body.
    • Replicated properties must be registered in GetLifetimeReplicatedProps.

    Full reference

    UPROPERTY

    SpecifierWhat it does
    EditAnywhereEditable in the Details panel on the Blueprint defaults and on every placed instance.
    EditDefaultsOnlyEditable only on the class defaults (Blueprint editor), not on placed instances.
    EditInstanceOnlyEditable only on instances placed in a level, not on the class defaults.
    VisibleAnywhereShown read-only everywhere. Common for component pointers: the component’s own properties stay editable.
    VisibleDefaultsOnlyShown read-only on the class defaults only.
    VisibleInstanceOnlyShown read-only on placed instances only.
    CategoryGroups the property in the Details panel and Blueprint menus. Use | for sub-categories, e.g. "Combat|Damage".
    AdvancedDisplayHidden under the “advanced” arrow of its category.
    SimpleDisplayAlways visible in its category, even if the category is advanced by default.
    NoClearRemoves the Clear (None) option for object references.
    EditFixedSizeArrays can be edited but not resized in the Details panel.
    InterpCan be animated by Sequencer tracks.
    AssetRegistrySearchableValue is added to the asset registry so assets can be filtered by it without loading them.
    InstancedObject references create a unique instance per owner, editable inline (use with EditInlineNew classes).
    BlueprintReadWriteBlueprints can get and set the value.
    BlueprintReadOnlyBlueprints can get but not set the value.
    BlueprintGetterBlueprint reads go through this UFUNCTION (BlueprintPure/BlueprintGetter) instead of the variable.
    BlueprintSetterBlueprint writes go through this UFUNCTION, so you can validate or react to changes.
    BlueprintAssignableFor multicast delegates: Blueprints can bind events to it (“Assign” / “Bind Event”).
    BlueprintCallableFor multicast delegates: Blueprints can call (broadcast) it.
    ReplicatedValue is replicated from the server to clients. Register it in GetLifetimeReplicatedProps with DOREPLIFETIME.
    ReplicatedUsingReplicated, and calls this UFUNCTION on clients when a new value arrives.
    NotReplicatedFor struct members: skip this member when the struct is replicated.
    SaveGameIncluded when the object is serialized with the SaveGame archive flag (ArIsSaveGame), for example in custom save systems.
    TransientNot saved or loaded; starts zero-filled. Use for runtime-only state.
    DuplicateTransientReset to default when the object is duplicated (copy and paste, Play In Editor).
    ConfigLoaded from and saved to the class’s config (.ini) file. The class needs UCLASS(Config=...).
    GlobalConfigLike Config, but subclasses cannot override the value in their own section.
    meta: DisplayNameName shown in the editor and Blueprint nodes.
    meta: ToolTipTooltip text (C++ comments above the declaration are used by default).
    meta: ClampMinLowest value that can be entered.
    meta: ClampMaxHighest value that can be entered.
    meta: UIMinSlider minimum (values outside can still be typed unless clamped).
    meta: UIMaxSlider maximum.
    meta: UnitsShows units in the Details panel, e.g. cm, s, kg, Degrees, Percent.
    meta: EditConditionOnly editable when this bool (or expression) is true.
    meta: EditConditionHidesHide instead of grey out when EditCondition is false.
    meta: InlineEditConditionToggleOn a bool used as an EditCondition: shows it as a checkbox next to the other property.
    meta: AllowPrivateAccessLets Blueprints access a private C++ property marked BlueprintReadWrite/ReadOnly.
    meta: MakeEditWidgetFor FVector/FTransform: shows a 3D widget in the viewport to edit the value.
    meta: ExposeOnSpawnAppears as an input pin on Spawn Actor / Construct Object nodes (needs a Blueprint-visible property).
    meta: MultiLineMulti-line text box for FString / FText.
    meta: TitlePropertyFor arrays of structs: use this member as each element’s title in the Details panel.

    UFUNCTION

    SpecifierWhat it does
    BlueprintCallableCallable from Blueprints as a node with execution pins.
    BlueprintPureCallable from Blueprints as a node without execution pins. Must not change state; needs a return value or out parameter.
    BlueprintImplementableEventDeclared in C++, implemented only in Blueprint. Do not write a C++ body.
    BlueprintNativeEventHas a C++ default in FunctionName_Implementation that Blueprints can override.
    CategoryCategory in the Blueprint context menu.
    BlueprintAuthorityOnlyOnly runs from Blueprint code on the machine with authority (usually the server).
    BlueprintCosmeticCosmetic only: does not run on dedicated servers.
    CallInEditorAdds a button in the Details panel that calls the function in the editor.
    ExecCan be run from the in-game console (on classes that support exec functions, such as Player Controller or Cheat Manager).
    ServerRemote procedure call that runs on the server. Implement FunctionName_Implementation.
    ClientRPC that runs on the owning client. Implement FunctionName_Implementation.
    NetMulticastRPC that runs on the server and all clients. Implement FunctionName_Implementation.
    ReliableThe RPC is guaranteed to arrive, in order. Use for important, infrequent calls.
    UnreliableThe RPC may be dropped. Use for frequent, cosmetic or quickly outdated calls.
    WithValidationServer RPCs: also declares FunctionName_Validate; returning false disconnects the caller.
    meta: DisplayNameName shown in the editor and Blueprint nodes.
    meta: ToolTipTooltip text (C++ comments above the declaration are used by default).
    meta: KeywordsExtra search words for the Blueprint context menu.
    meta: CompactNodeTitleShows the node in compact form with this title.
    meta: DefaultToSelfThis parameter defaults to “self” when left unconnected.
    meta: WorldContextParameter that receives the world context automatically in Blueprints (static functions).
    meta: ExpandEnumAsExecsTurns an enum parameter or return into execution pins (one per value).
    meta: AdvancedDisplayParameters from this index (or named ones) are hidden behind the node’s arrow.
    meta: ReturnDisplayNameName of the return value pin.
    meta: DevelopmentOnlyThe Blueprint node only runs in development builds.

    UCLASS

    SpecifierWhat it does
    BlueprintableCan be used as the parent of Blueprint classes.
    NotBlueprintableCannot be the parent of Blueprint classes.
    BlueprintTypeCan be used as a variable type in Blueprints.
    NotBlueprintTypeCannot be used as a Blueprint variable type.
    AbstractCannot be instantiated or placed; only subclasses can.
    ConfigConfig file used by Config properties (Game = DefaultGame.ini, Engine = DefaultEngine.ini…).
    DefaultConfigConfig properties are saved to the Default*.ini in the project Config folder.
    TransientObjects of this class are never saved to disk.
    MinimalAPIExports only the minimum (type info) from the module, to speed up linking.
    EditInlineNewObjects can be created inline from an Instanced property in the Details panel.
    ClassGroupGroups components in the editor’s Add Component menu (use with meta BlueprintSpawnableComponent).
    PlaceableCan be placed in levels (inherited by default).
    NotPlaceableCannot be placed in levels.
    HideCategoriesHides these Details panel categories for this class.
    meta: DisplayNameName shown in the editor and Blueprint nodes.
    meta: ToolTipTooltip text (C++ comments above the declaration are used by default).
    meta: BlueprintSpawnableComponentThe component appears in the Add Component menu of Blueprints.

    USTRUCT

    SpecifierWhat it does
    BlueprintTypeCan be used as a variable type in Blueprints (Make/Break nodes).
    AtomicAlways serialized as a single unit.
    meta: DisplayNameName shown in the editor and Blueprint nodes.
    meta: ToolTipTooltip text (C++ comments above the declaration are used by default).

    UENUM

    SpecifierWhat it does
    BlueprintTypeCan be used as a variable type in Blueprints. The enum should be a uint8 enum class.
    meta: BitflagsEnum values can be used as bit flags in a bitmask property.

    FAQ

    What is the difference between EditAnywhere and VisibleAnywhere?

    EditAnywhere lets you change the value in the Details panel. VisibleAnywhere shows it read-only. For component pointers use VisibleAnywhere: the pointer stays fixed, but the component’s own properties are still editable.

    What is the difference between BlueprintReadWrite and EditAnywhere?

    They control different things. Edit and Visible specifiers control the Details panel in the editor. BlueprintReadWrite and BlueprintReadOnly control whether Blueprint graphs can get or set the variable. Most gameplay properties use one of each, for example EditAnywhere plus BlueprintReadWrite.

    Why do I get an error when using BlueprintReadWrite on a private property?

    Blueprints cannot access private C++ members by default. Add meta = (AllowPrivateAccess = "true") to the UPROPERTY, or make the property protected or public.

    What is the difference between BlueprintCallable and BlueprintPure?

    BlueprintCallable nodes have execution pins and can change state. BlueprintPure nodes have no execution pins and run every time their output is used, so they should only read and return values, ideally marked const.

    Guides for this tool

    More free tools