x

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"

Why can't I change the case of my variable names?

I can't change the case of my variable name in Blueprints after the first edit.
For example:
I make a variable called: bSTartHUDCheck
I notice that T is uppercase and try to change it to lowercase. But it just reverts back to uppercase after the edit.
I have to completely exit the editor and re-load the project in order to fix the typo.
Is this known? or maybe an artifact of working with VISTA instead of 7?

Product Version: Not Selected
Tags:
more ▼

asked Apr 26 '14 at 10:49 PM in Blueprint Scripting

avatar image

Erdrik
423 47 55 77

avatar image gmpreussner STAFF Apr 26 '14 at 11:49 PM

This is a side effect of FNames being case insensitive - an unfortunate circumstance that dates back to the early years of Unreal Engine. The misspelled name is stored in the name table, so if you try to correct it, it will just find that existing entry and think "hey, nothing changed".

It doesn't have anything to do with Vista or Win7. Someone from the Blueprint team can probably suggest a better workaround for you.

avatar image [Epic] Gribbs ♦♦ STAFF May 07 '14 at 07:10 PM

Hi Erdrik,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thank you.

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

4 answers: sort voted first

We've made a change for 4.5 which will make FName case-preserving for the editor and UHT. This should address the FName case issues you've been seeing.

I've checked that you're able to rename asset, actor, and blueprint components in a way that changes only their case. I've also tested that you're able to have a variables in different UObject/UStruct types that vary only by case, and that the UHT will generate code that actually compiles.

more ▼

answered Sep 23 '14 at 11:20 AM

avatar image

Jamie Dale STAFF
7.5k 177 67 307

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

You have to change it to something else. Restart the editor, then change it to what you want.

more ▼

answered Apr 27 '14 at 03:15 AM

avatar image

MulleDK19
2.8k 161 274 255

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

Deleting the variable/function in question and restarting the editor seems to work in 4.2.1. Saving files on exit doesn't seem to matter.

more ▼

answered Jul 22 '14 at 09:34 PM

avatar image

stefan9083
11 2 1 3

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

Given gmpreussner's comment, it seems the best way to get your variable name to change would be to change it twice.

Delete the T, then add it back in as t.

more ▼

answered Apr 27 '14 at 01:01 AM

avatar image

Zeustiak
1.8k 131 68 110

avatar image tomofnz Apr 27 '14 at 03:11 AM

Sounds so simple ;) But it doesn't work, removing it and compiling, then adding a different case of the letter just shoves the letter back as what it was in the first place.

avatar image Zeustiak Apr 27 '14 at 03:51 AM

How about deleting the variable, compiling, and then creating a new one with the correct name?

avatar image ash22 Oct 03 '14 at 12:10 PM

It is somewhat annoying, especially when you're typing fast and make a couple of mistakes.

I created a custom event called 'PRocessMouseInput'. I didn't want the capital R so I deleted the custom event, saved all, closed editor, reopened editor, created a new custom event called 'ProcessMouseInput' ..but it still changes back to 'PRocessMouseInput'. Grrr.

I really hope it gets fixed in 4.5.

avatar image Jamie Dale STAFF Oct 03 '14 at 12:11 PM

It is fixed for 4.5. See my answer.

avatar image ash22 Oct 03 '14 at 12:13 PM

Fantastic!

(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