Announcement

Collapse
No announcement yet.

How to get a Drop-Down list without using an Enum?

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

    How to get a Drop-Down list without using an Enum?

    Hi all!
    I need to create a drop-down list of available textures in the details panel of my blueprint, but without using an Enum. The reason is I want artists to be able to add textures to an blueprint array, and use that array in the blueprint to generate a drop-down list. If I use an Enum, then artist will have to also update the Enum to match the texture array...

    I am trying to avoid resorting to writing a plugin for custom blueprint nodes, so how can I do this without c++?

    Thanks!
    Stephane Roncada
    Lead Technical Artist | Environment Artist
    Rainbow Studios

    #2
    Just a bump
    Stephane Roncada
    Lead Technical Artist | Environment Artist
    Rainbow Studios

    Comment


      #3
      Do you want something like this?:



      It is basicly two type of arrays, where you can add new options and select a material from the imported textures you have inside your folders. The second option is the index, so you can specify, which slot you want to use from your added options.

      EDIT: I didn't miss click in the video. Normally there will be a menĂ¼ showing all your materials, but somehow my capture software screwed up :/.
      Attached Files
      Last edited by DarkGodsLair; 06-10-2016, 09:53 PM.
      Main channel:
      https://www.youtube.com/channel/UCGC...o9s3YcA/videos

      Comment


        #4
        Originally posted by DarkGodsLair View Post
        Do you want something like this?:



        It is basicly two type of arrays, where you can add new options and select a material from the imported textures you have inside your folders. The second option is the index, so you can specify, which slot you want to use from your added options.

        EDIT: I didn't miss click in the gif. Normally there will be a menĂ¼ showing all your materials, but somehow my capture software screwed up :/.
        Could you re-upload the GIF please? It sounds like what I am looking for yes.
        Stephane Roncada
        Lead Technical Artist | Environment Artist
        Rainbow Studios

        Comment


          #5
          Sorry about that. I will update the image right away.

          Here is the blueprint graph anyway:

          Click image for larger version

Name:	b6520e58a59d42b6b6dd7378d55ea75f.png
Views:	1
Size:	287.2 KB
ID:	1108049

          Important note: It still has the limitation to only update the first material ID. If you have multiple material ID's, this system will not work for that.

          Which engine version do you use? If you want more functionality I may be able to create a blueprint and send it to you, which you can put in your content folder and works out of the box (that is, why I would need your engine number) . This above is just a hack job and basic in it's setup.
          Main channel:
          https://www.youtube.com/channel/UCGC...o9s3YcA/videos

          Comment


            #6
            Thanks for info and sorry for the late reply.

            The thing is I don't want the array to be exposed and don't want to use an index to choose between the different textures. What I would like to do is convert the array into an enum within the blueprint, and just switch on that enum to show the drop-down list.
            Stephane Roncada
            Lead Technical Artist | Environment Artist
            Rainbow Studios

            Comment

            Working...
            X