Changing Response Menu
-
- Posts: 22
- Joined: Sat Dec 18, 2021 10:52 pm
Changing Response Menu
I'm working in VR, and I have the response menu attached to the left wrist. That works great, but sometimes there are conversations that I don't want the player looking away from the character they're talking to so that they can look at their wrist. What would be the easiest way to change the location of the response menu during these scenes? I'm thinking of putting it to the left of the NPC's face. Is there an easy way to change location of the response menu, or to toggle between different response menus?
Re: Changing Response Menu
Hi,
There are two parts to this:
1. Setting up two menus, and
2. Specifying which menu to use.
There are two ways to set up menus:
1. Add them to your main dialogue UI structure and assign them to the StandardDialogueUI component, or
2. Make them separate world space UIs that are children of the player rig.
Since you're in VR, I recommend #2 (separate world space UIs).
There are two ways to specify which menu to use:
1. Use the SetMenuPanel() sequencer command, or
2. Use DialogueActor components on GameObjects, and assign a custom menu panel to each DialogueActor.
Since you're in VR, I recommend #2 (DialogueActor components). Try these steps:
There are two parts to this:
1. Setting up two menus, and
2. Specifying which menu to use.
There are two ways to set up menus:
1. Add them to your main dialogue UI structure and assign them to the StandardDialogueUI component, or
2. Make them separate world space UIs that are children of the player rig.
Since you're in VR, I recommend #2 (separate world space UIs).
There are two ways to specify which menu to use:
1. Use the SetMenuPanel() sequencer command, or
2. Use DialogueActor components on GameObjects, and assign a custom menu panel to each DialogueActor.
Since you're in VR, I recommend #2 (DialogueActor components). Try these steps:
- Create 2 player actors in your dialogue database: Wrist and Face. Tick their "Is Player" checkboxes.
- Create a child GameObject under the player named "Wrist" positioned at the rig's wrist.
- Add a world space StandardUIMenuPanel UI as a child of Wrist.
- Add a DialogueActor component to Wrist. Set the Actor to Wrist. Set Dialogue UI Settings > Menu Panel Number to Custom, and assign the world space menu panel. Set the Use For dropdown to "Me And Responses To Me".
- Create a child GameObject under the player named "Face" positioned to the left of the rig's face.
- Add a world space StandardUIMenuPanel UI as a child of Face.
- Add a DialogueActor component to Face. Set the Actor to Face. Set Dialogue UI Settings > Menu Panel Number to Custom, and assign the world space menu panel. Set the Use For dropdown to "Me And Responses To Me".
- When you set up a Dialogue System Trigger whose response menus should appear on the wrist, assign the Wrist GameObject to the Conversation Actor field. When the menus should appear next to the face, assign Face to Conversation Actor.
-
- Posts: 22
- Joined: Sat Dec 18, 2021 10:52 pm
Re: Changing Response Menu
Thank you,
Can't wait to try it. Funny thing is, that I've been using Dialogue System for about a year, and I never noticed there is a field to fill out with the actors. I never have to use portraits or sprites, and the Player is already marked as Is Player, so it's not something I ever needed to worry about. I already had things set up almost exactly that way, but had no idea there was an Is Player box to toggle.
Can't wait to try it. Funny thing is, that I've been using Dialogue System for about a year, and I never noticed there is a field to fill out with the actors. I never have to use portraits or sprites, and the Player is already marked as Is Player, so it's not something I ever needed to worry about. I already had things set up almost exactly that way, but had no idea there was an Is Player box to toggle.