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"

The variable declared has an invalid type class.

The editor crashed before i could save a new blueprint class that im calling on in one of my blueprints, and now it wont let me compile it saying, The variable declared in MyCharacter has an invalid type class.

However, the variable is no longer even on the list on the left of the screen i deleted the old blueprint that it's refering to but with no luck, how can i fix this?

Product Version: Not Selected
more ▼

asked May 14 '14 at 09:27 PM in Blueprint Scripting

avatar image

108 15 22 29

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

2 answers: sort voted first

If you can still open the blueprint do a search and find and delete all references to the variable.

Otherwise, you might find some of the autosaves and go back before it was corrupted.

more ▼

answered May 14 '14 at 11:24 PM

avatar image

1.8k 131 68 110

avatar image virusescu Sep 14 '14 at 08:32 PM

I have encountered this also in 4.4.2 and its incredibly annoying. So many corrupted blueprints... Why didn't it just convert the variable to UObject or UClass? is there a way to "clean" the project or individual blueprints?

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

You need to duplicate the Blueprint that is throwing the error. The editor will catch the invalid type and warn you that it will be removed. Now delete the old blueprint. A window will pop up and allow you the option to replace the old references with the new, error free version.

more ▼

answered Sep 26 '16 at 03:03 AM

avatar image

822 38 39 241

(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