Announcement

Collapse
No announcement yet.

[UMG] What is the parent class of all UMG objects?

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

    [UMG] What is the parent class of all UMG objects?

    Do UMG objects inherit from a central generic UMG class? What is the name of this class? Is this class available to other non-UMG blueprints? I want to be able to affect the render transforms of any UMG object passed into my function, but I can't do that from other blueprints because I don't know what class to use. I can't even do this for specific UMG objects because things like Text Block aren't available to other blueprints. Please and thank you for any and all help you can provide.
    iTween For UE4
    Procedural pathed animation for actors, components & UMG - $0
    Runtime DataTable
    DataTables dynamically loaded from text or Google Sheets while your game is running!
    easyCSV
    Fast, cheap, and accurate CSV parsing at runtime!

    #2
    UWidget is the base class of all Widgets. UUserWidget is the base class of all user created widgets through blueprints. UUserWidget is also a UWidget.

    Comment


      #3
      Originally posted by NickDarnell View Post
      UWidget is the base class of all Widgets. UUserWidget is the base class of all user created widgets through blueprints. UUserWidget is also a UWidget.
      Thank you, Nick. That's what I thought! However, I can't seem to pass single widgets (such as buttons) into my function that accepts User Widget.

      Here's my event, you can see it accepts "User Widget" as its second input. From that input, I'm able to access things like Pivot and Render Transform, which is what I want.

      Click image for larger version

Name:	Event.png
Views:	1
Size:	293.3 KB
ID:	1058021

      But when I reference this event in my Widget BP (the one that houses all the individual widgets), it won't take individual widgets like buttons or text blocks, on a reference to self, the entire Widget BP.

      Click image for larger version

Name:	No Buttons.png
Views:	1
Size:	69.7 KB
ID:	1058022
      Click image for larger version

Name:	No Text Blocks.png
Views:	1
Size:	68.3 KB
ID:	1058023
      Click image for larger version

Name:	Only Created Widget BPs.png
Views:	1
Size:	67.8 KB
ID:	1058024

      Of course the Widget BP (as a reference to self) doesn't have accessible properties like Pivot and Render Transform, so it's puzzling why it can be passed into the event when the other individual widgets can't be since the User Widget input has Render Transforms accessible inside the event's function.

      Do you have an idea of what the problem may be? Thank you!
      iTween For UE4
      Procedural pathed animation for actors, components & UMG - $0
      Runtime DataTable
      DataTables dynamically loaded from text or Google Sheets while your game is running!
      easyCSV
      Fast, cheap, and accurate CSV parsing at runtime!

      Comment


        #4
        Buttons are not UUserWidget, buttons are UWidgets. All of the primitive widgets that you use to compose your user widget are UWidgets.

        Comment


          #5
          Okay, that makes more sense now. I think then the thing I need to request is for UWidgets to be exposed to blueprints if possible. Right now, they don't appear to be accessible.

          Click image for larger version

Name:	context.png
Views:	1
Size:	38.6 KB
ID:	1058025
          iTween For UE4
          Procedural pathed animation for actors, components & UMG - $0
          Runtime DataTable
          DataTables dynamically loaded from text or Google Sheets while your game is running!
          easyCSV
          Fast, cheap, and accurate CSV parsing at runtime!

          Comment


            #6
            Yup, you've found a bug. Will be fixed in 4.6.

            Comment


              #7
              Thank you sir
              iTween For UE4
              Procedural pathed animation for actors, components & UMG - $0
              Runtime DataTable
              DataTables dynamically loaded from text or Google Sheets while your game is running!
              easyCSV
              Fast, cheap, and accurate CSV parsing at runtime!

              Comment

              Working...
              X