Announcement

Collapse
No announcement yet.

Enumeration as Maplist problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Enumeration as Maplist problem

    Hi Guys!

    I´m trying out using Enums for my map selection but when I plug the enum into the "Open level" node I get a travel-Error. I don´t see the difference between me using the "enum to name" using the exact same level name as If I write it out in the node. Anyone know what I am doing wrong here?

    Click image for larger version

Name:	UE4Editor_NEsON8lVBE.png
Views:	34
Size:	28.6 KB
ID:	1795486Click image for larger version

Name:	UE4Editor_PSSAPjd5TM.png
Views:	29
Size:	8.3 KB
ID:	1795487Click image for larger version

Name:	UE4Editor_pZP6qv77pf.png
Views:	29
Size:	15.9 KB
ID:	1795488

    #2
    Just use a select node for the string. I'm not sure why the convert to string fails though.

    Comment


      #3
      You need to convert first to string :

      Click image for larger version

Name:	EnumToString.jpg
Views:	17
Size:	56.9 KB
ID:	1795524

      Then plug from string to the level name and it will add a converter "string to name" :

      Click image for larger version

Name:	StringToName.jpg
Views:	13
Size:	28.8 KB
ID:	1795525

      Comment


        #4
        Originally posted by STRiFE278 View Post
        Just use a select node for the string. I'm not sure why the convert to string fails though.
        Originally posted by Grot13 View Post
        You need to convert first to string :

        Click image for larger version

Name:	EnumToString.jpg
Views:	17
Size:	56.9 KB
ID:	1795524

        Then plug from string to the level name and it will add a converter "string to name" :

        Click image for larger version

Name:	StringToName.jpg
Views:	13
Size:	28.8 KB
ID:	1795525
        Thanks alot guys!

        Will have to try when I get back from work. Strange that the input for the level node is type "Name" and the enum gets converted to name but failing. I tried printing the result but it turned out as expected. When looking at tutorials their Enums didn´t have the description fields so I was thinking maybe I was declaring them wrong.

        Comment

        Working...
        X