I tried this
UPROPERTY(VisibleAnywhere,EditAnywhere, BlueprintReadWrite, Category=Attributes)
float health;
but it is still grayed out in the editor.
I tried this
UPROPERTY(VisibleAnywhere,EditAnywhere, BlueprintReadWrite, Category=Attributes)
float health;
but it is still grayed out in the editor.
Delete VisibleAnywhere; either put visible or edit, they can’t work together.
Thanks to JamesTan for pointing it out for me few days ago
Nice! I was wondering why only some of my vars are editable. Thanks!
Hi,
I’ve seen a few different people run into this issue, so I went ahead and added a UHT error for it:
Path\To\ClassName.h(34): error : In ClassName: Found more than one edit/visibility specifier (EditAnywhere), only one is allowed
CL# 2038938 in main, should be in 4.1.
Cheers,
Michael Noland
Are these variables actually editable in the blueprint graph or only in the defaults section?
I have a property with EditAnywhere and can edit it in defaults, but I seem to miss how to change it using blueprint events.
Hi ekhaede,
Blueprint access is controlled by specifying BlueprintReadOnly or BlueprintReadWrite, and is totally independent of details panel access (EditAnywhere, VisibleAnywhere, etc…).
If you have specified Blueprint access, they should show up in the palette and the right-click context menu, but will be filtered out of My Blueprints by default (you can use the “Show inherited variables” check box to control this).
Cheers,
Michael Noland
Hey Michael,
This update conflicts with whats going on here:
Which has made setting up new code via that method…quite confusing. May want to add a comment somewhere on that video to avoid further confusion with 4.1.
Hi Tybera,
Thanks for the report. I forwarded it onto Jeff to see if he can add a comment bubble to the video.
Cheers,
Michael Noland