Output UMG to SDI

Create widget

  1. Right click in the Content Drawer and create an Editor Utility Widget

    BH24nkoX5RAhJjxC-Lxq1GtnKQlYFsyKXWX41WwdGF0z4_3Iv9B6YUm4sLbUopRicKkTnEXjh9vs7mlLK85KAzHat0-P7aGG7-lBUZAn0jRNjDpPeUKQd1gwiU8DJpzIHUJ_qu-kB8HDHpFbVv8Pjg


  2. Select CanvasPanel in the upcoming dialog

    nCqUEr7d5T1qJik4SnEC2_oSCyFTzB8tezt3CosMQvghvyozVWmeXFi9aClNdNI-13_ecld_J-0EQFazhX4EplNBCIDZD01uVIbXxuSoSNlzWQ2eEb8raB37zwYy7CWAnRbd6vfvFZlwzW2BM8bgHA


  3. Rename it to "MyWidget"

  4. Search for Pixotope Widget Renderer in the Spawning Mode or the Place Actors tab and add it to your level

    image-20230106-095030.png


  5. In the Details tab under Render Texture > Widget Asset, assign the widget class you created in step 1

    DRF3VXRE2xC3Ks8bHKXHHfMbeqeQxE5ulS52ttjGYZWvhFUAy2lfrzDWryn_FmROInTa9q4s9X3DH9SKQKMLRF1Sh8WGf3FnNnVnPvKr0XUP1PyupJg_YxSeOsIN3utDdmPNni5GskIcZxg4btofAA
  6. Open MyWidget and add a Text block into the canvas

  7. Select the Text block and create a binding to the text

    PgYC_IENRoopGR6m2xi8UaFThOEwEdxTHrSxpiz-x1tT5r1Se5DvV3vMmVLO6RrHPsDJbcKH0LX7gSavAjYhjfC2Cobx7Gj3qpZvz8Yzj3TzTBUzLm7dJ2Vse2TilVNQrfOdQqw67RLnsWZgyA9iaw


  8. In the graph view, click the Return Value and select Promote to variable

    Screenshot 2023-11-29 at 09.39.12.png


  9. Make the variable public by toggling the eye icon next to the variable on the left. Rename it if you want

    Screenshot 2023-11-29 at 09.39.21.png


  10. Compile and save the widget blueprint

Control variable

  1. Open your Level Blueprint.

    image-20230106-100422.png


  2. Drag and drop the your Pixotope Widget Renderer actor from the Outliner onto the Event Graph to create a reference

    image-20230106-100631.png


  3. Add a Get Widget node out of your Pixotope Widget Renderer actor and cast it to your MyWidget type

  4. Drag out the Set function for you Text variable and change it on Tick

    Screenshot 2023-11-29 at 10.01.35.png


  5. As an example this is how you would set it to show current Game Time in seconds.

    LRWBPf-qFvc_y31ooEjYbIypLovBbYAXkBBuz4IRzG1MEPS04bpVCXI1ViFhgaAX5yBDNP6Ma947bep4MQpFjIZxyf7Gb8IpZlydKMVWlmmwTQ1GxygSlLGj0csGJwEDOyINFjAbZ725m6l8eIEBfg


In case you are using a regular blueprint, use the "Get All Widgets of Class" node to get the MyWidget blueprint.

teiL024bDG323jg3sMEsUB24MZW4Y-np1nyRXqF-ySYTfQKTxrOSscUG7RmGgNHuu6z_lT_qUuk1DYQbfmmm1ao76RY7-7DgebxlIUnahzeJpM4o5RNY_oHQT6cC26KIrK2QAR0fcpb_EJ2XWEWhCw