How to get the reference to a Ui wiget spawn within an actor
So I am spawning this actor that contain a ''flying'' Ui widget
Am I am trying to update the book title value.
But It seem I cant get a reference to the variable 'Book Spine UI' does not inherit from 'Book Spine 3DWidget' ( Cast To BookSpineUI would always fail).
So I (assume) I am getting the reference to the spawned actor correctely but I cannot acces the variable inside the actor widget.
asked Dec 30 '18 at 07:58 PM in Blueprint Scripting
The Text of "Book Title" is in the Widget. Not in the Actor. So you need to get its widget component and do it there.
Get the actor, get its widget component (your was called BookTitleWidget), get the generic widget object, cast to the actual widget class, get its text variable, set the new text.
answered Dec 30 '18 at 08:17 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here