I was trying to include some combatant portraits during my dialog with NPC, but they are not shown during the conversation with my character. I tried to modify SimpleDialog schematic orkframework.com/guide/tutorials/3d-rpg-playground/03-first-interaction/#15-toc-title and check the portraits prefabs for my player and NPC character, but aren´t shown again... How should I do to activate the portraits during conversation? It is possible one sort or kind of tutorial on how to do animated portraits inside dialog box?
  • First of all, you need to add portrait content to your UI box prefab, e.g. via the scene hierarchy context menu: Makinom > UI Box > Portrait has different options available
    E.g. for a sprite portrait, you need to add a Portrait (Sprite).

    However, for animated portraits, you need to set up a prefab with the animated sprite and use the prefab as the NPC's portrait instead of a sprite. The prefab will be spawned on the portrait content of the UI box.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • gamingislove said: First of all, you need to add portrait content to your UI box prefab, e.g. via the scene hierarchy context menu: Makinom > UI Box > Portrait has different options available
    E.g. for a sprite portrait, you need to add a Portrait (Sprite).
    When I create the portrait (sprite) with Makinom > UI Box > Portrait I shoiuld drag a image or must be empty and set the image after in schematics dialog?
  • Leave it empty, as it'll be set by the dialogue (or whatever else) displaying a portrait.

    For placement/styling you can naturally select a portrait sprite, just keep in mind to remove it afterwards.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • I´ve left empty but it shows a white blank image, I tried to set up in schematics settings, cheking the portraits and drag the sprite image, I´ll show some screenshots about my process:

    https://imgur.com/ogWzA9x
    https://imgur.com/TqEGGHR
    https://imgur.com/Ajn83gH
    https://imgur.com/r4GY3xG
    https://imgur.com/2WQcnMr
    https://imgur.com/J58Yh6J
  • Looks like the in-game UI box portrait has lost the reference to it's Image component. Check if this is still set on your prefab.

    If yes and it keeps getting removed in-game, try removing and adding the portrait content again (or try reimporting the prefab via the context menu).
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.