buscas31
Wed, 09 Sep 2015 01:16:20 +0000
Editor Scripting

How i update a variable inside my widget blueprint from my blueprint actor and make it to work even if blueprint actor have more than one copy (instance) in the game?

Soo…i have this blueprint actor called “door”. this blueprint call my widget blueprint and add it to viewport. In my “door” BP, i have the variable “name override” (string , editable) to override my blueprint name, because i need to get my “door” BP, put in the level, and get a lot more of same “door” BP and put too in my level. But, each of one Must have a unique name. And each of one “door” BP, Must need to set the value of the “name override” variable to my Widget Blueprint (called Door Widget") variable, called “name” , also a String variable, also editable.

So far, so good. Now the problem is: WITHOUT the widget, (without create widget in my “Door” BP) this work very well (only changes the “name override” in blueprint details). WITH te widget, i can´t override my “name” variable in my widget “door widget”.

I´m already create the reference to my “door widget” in my “door” BP, and a reference to my “door” BP in my “Door Widget”.

I created a simple text block in my designer on door widget, and created too a bind to my “name” string variable.

See below what i have so far. I just cannot figure out what is wrong…

![Door Widget Graph][2]

![Door BP Construct][2]

Any ideas?

18 posts - 5 participants