Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Showing a private variable in the properties panel?

Hi there,

I just wanted to see if there was a way to show the value of a variable as non-editable in the properties panel? I have my script as construction script and didn't really want to start messing with widgets unless totally necessary.

Thanks for any assistance :)

Harry Luck.

Product Version: UE 4.20
more ▼

asked Oct 16 '18 at 02:15 PM in Blueprint Scripting

avatar image

3 1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first


Unfortunately you cannot do this is blueprints, (I really wish we could) It is easy to do in c++ though.

When creating a variable in c++ you can simply add VisibleAnywhere to its Uproperty and it will show up in the editor and not be editable.

 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "MyCategory")
 float MyFloatVariable;

The BlueprintReadOnly tag allows the variable to be accessed only as a blueprint getter.

And finally if the variable is always updating its value in the constructor based off of other variables values and you wanted the correct value to always show up in the editor for "MyFloatVariable" you would need to put that calculation inside the function PostInitProperties().

more ▼

answered Oct 17 '18 at 08:02 AM

avatar image

Steve SybrSyn
1.5k 4 5 10

avatar image harryluck Oct 17 '18 at 08:07 AM

I'm not one for coding :) but thank you for your answer, i'll keep a note in case i'm ever feeling brave ;) In the meantime, i guess i'm making some widgets :D


avatar image Steve SybrSyn Oct 17 '18 at 08:39 AM

Your welcome. I understand, its intimidating at first, but its really not that bad when you get used to it.

A really good course that got me comfortable with it is Tom Loomans c++ course, if your interested, he worked at epic for awhile, he really knows his stuff. https://www.tomlooman.com/

I know its not the ideal solution but its currently the only one, so I ask if you could please mark the answer as correct so that others with a similar question could find this answer more easily? Thank you :)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question