Announcement

Collapse
No announcement yet.

UMG Questions

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

    UMG Questions

    Hi everybody,

    I would like to ask you some questions about UMG and its communication with Blueprint.

    I would like to be able to interact in my scene with the buttons for example I would like to create a button to make an object disappear when I click on it.
    The only thing I'm able to do for now is to make a console command (the one in the Epic demonstration).
    I tried to make a custom event in my blueprint that makes the object I want to disappear but I can't use it in my UMG's binding button

    Also is it possible to play an animation create in my widget blueprint (I can set keys an animate but it does not play my animation when I press my button to make my menu appearing.

    Thanks in advance,

    Denis

    #2
    have you tried the multicast event on this thread? sorry I'm not familiar with this yet, but as with other experimental feature, if you have any feedback, better let Epic know in AnswerHub.

    https://forums.unrealengine.com/show...or-4-4-Preview
    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


      #3
      Originally posted by Denis View Post
      Hi everybody,

      I would like to ask you some questions about UMG and its communication with Blueprint.

      I would like to be able to interact in my scene with the buttons for example I would like to create a button to make an object disappear when I click on it.
      The only thing I'm able to do for now is to make a console command (the one in the Epic demonstration).
      I tried to make a custom event in my blueprint that makes the object I want to disappear but I can't use it in my UMG's binding button

      Also is it possible to play an animation create in my widget blueprint (I can set keys an animate but it does not play my animation when I press my button to make my menu appearing.

      Thanks in advance,

      Denis
      There is several ways you can do something like this.

      First of all you can get all actors using a certain class or interface in your Click event binding, and call a function on them. So you could find the object, (or objects) then call a function to make them fade.

      Another possibility is using the Game Instance, have a variable that contains a 'State', so when you click the button you set the state, then in the tick event anywhere on the object you want to disappear or your level blueprint, look for that state and make it disappear when it becomes that state.

      The last one, which I haven't tried, is after creating the Widget in your level blueprint, bind the Button from the Widget to a new event in the level. Theoretically that will work.

      Comment

      Working...
      X