Announcement

Collapse
No announcement yet.

Is it possible to define container data structures in blueprints?

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

    Is it possible to define container data structures in blueprints?

    For example, let's say I wanted a map<string,int32> (or equivalent, just for example) - could I create that in blueprints? I know it's trivial to do in code, but I just wanted to make sure I wasn't missing something before heading down that route.

    #2
    I just got a reply on reddit (the source of my question) from someone that appears to be involved with Epic. The answer is no. They will in the future be adding support for creating structs, and you can create arrays.

    Comment


      #3
      You can't make custom structs yet, but it will be coming soon. I have been wanting this for a while too. You can make individual arrays of each type of asset though now. Just click the array button when making a variable. It is the little icon to the right on the Variable Type.
      Click image for larger version

Name:	Capture.PNG
Views:	1
Size:	7.5 KB
ID:	1049866

      Comment


        #4
        that will be a really nice feature, i am creating a separate blueprint with only vars to emulate a struct

        Comment


          #5
          Just to confirm as it's been a while, is this feature already available in one of the latest builds?

          Steam Early Access: Drunk On Nectar - The Nature Simulator

          UE4 Plugins: DoN’s Dynamic Mesh FX | DoN’s 3D Pathfinding

          Comment


            #6
            you can make struct similarly like you do with blue print interface, however define one dynamically in another blueprint is infeasible. (think about the dependency hell it might have created).
            Unreal Engine 4 Game Framework diagram for relation of all major base object types
            Unreal Engine 4 Input Event diagram, scroll down to section Input Processing Procedural
            Resident Evil Classic Camera
            RPCs official document, Must Read
            Everything you should know about replication

            Comment

            Working...
            X