Good afternoon I use Blueprints Interface to transfer a variable in widget but also to create new under terms of a variable but parent widget dont remove from viewport. Thanks in advance for help!!!
Hi ,
In 4.6, Remove from Viewport is deprecated. Use Remove from Parent instead.
Good afternoon. This problem in 4.5.1 but I tried and in 4.6.1 parent widget doesn’t disappear. Whether it is possible that with it to make that? Thanks in advance for response!!!
Hm, I wasn’t able to reproduce this behavior using a Blueprint Interface. Can you reproduce this in a new project? If so, would you mind uploading test project somewhere and giving me a link? Thanks!
Good afternoon !!! Here as you asked a project sample. I tried everything to make again in 4.6.1 but problem remained (GameOverInt shall will be connected to counter but variable doesn’t read). Can do it a problem on MAC OS or I that not correctly I do that? Thanks in advance for response! Also I wish your command a Happy New Year!!!
https://.com/file/d/0B25dkUKteUetaWJHYU82dzd3Njg/view?usp=sharing
For check of operation of a widget it is necessary to shoot at a cube
Hi ,
After investigating your sample project, it appears problem is that you weren’t actually removing UICharacter widget. Instead, you were creating a new one in TemplateCube_Rounded BP and then calling GameOverInt on that specific instance of widget. This would only remove newly created widget and not remove one originally created in Level Blueprint on Begin Play.
So to fix this, I would recommend not creating widget in Level Blueprint. Instead, on Begin Play, cast to Character BP and have that create widget in a Custom Event. Then in TemplateCube_Rounded BP, cast to Character BP and use your reference to widget to call Game Over Int. It should look like this:
Character Blueprint:
Level Blueprint:
Target BP:
Hope that helps! Let me know if you have any questions.
Many thanks this it just that that was necessary for me!!! I am very grateful to you for help!!!