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"

[Bug] Switch on enum in blueprint

Hi guys, I had this issue with blueprints so I thought I would pass it on just incase it hasnt been found yet. Basically it errors on the Switch On Enum node because of some kind of conversion even when I pass the right type of enum to it.

Error Default value 'Coord_Y' for Selection is invalid: 'Expected a valid unsigned number for a byte property'

I did find a work around which is simply using Switch on Int and converting the Byte to Int.

Thanks.

Product Version: Not Selected
Tags:
more ▼

asked Mar 11 '14 at 02:53 AM in Blueprint Scripting

avatar image

ue4-archive ♦♦ STAFF
50k 3670 1999 9124

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

1 answer: sort voted first

Hey Daniel,

Thanks for you question! Would you be able to provide a screenshot of your blueprint setup including what type of Enum you are using? Specifically, are you using a pre-defined Enum or a user-defined Enum?

Thanks!

-Steve

more ▼

answered Mar 11 '14 at 02:53 AM

avatar image

ue4-archive ♦♦ STAFF
50k 3670 1999 9124

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 02:53 AM

Okay so I took a look at what could be causing this and it seems to be the dropdowns on the collapsed graphs, it doesnt seem to pick up this selection for the custom enumator values.

alt text

enums.jpg (155.2 kB)
avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 02:53 AM

Hey Daniel,

Thanks for the screenshot and additional information! We were able to reproduce this issue and have logged a defect report for it--it happens with both collapsed graphs and macros. Hopefully this will be fixed in a future Rocket Beta release.

Another workaround you could use in the mean time would be to pass in an Enum variable (that you set via Defaults) to that pin on your collapsed graph:

alt text

Thanks!

-Steve

enumworkaround.jpg (34.6 kB)
(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