LookAt() Subtitles in VR
Posted: Thu Mar 02, 2023 9:45 am
Hi Tony. I've been working with the dialogue system for the last week and I love it. I just need some help.
I'm creating a game in VR and I'm using the dialogue system as a way to instruct the player how to use the controls in the beginning of the game. I've setup an empty gameobject and called it "Welcome Menu." To the Welcome Menu, I've added the Bubble Template Standard UI Subtitle Panel. This is set to world space.
In the Conversation tab, I've used Dialogue Text to display text on screen, and an audio clip is played from the Sequence using AudioWait each time a node is run through.
What I've wanted to do, is keep the subtitles in an absolute position in the world space. When I put on my headset to test it out, by default, the subtitle bubble follows along, tilting, turning as I move my head. I'd like to make it so that the player can walk up to it, read it, listen to it, and interact with it (pressing continue) while learning their controls.
In order to try and keep these subtitles still, I've made another empty game object, called "Welcome Menu 2" and made this into a third NPC character in the Actors tab. So, we have Player, Welcome Menu, and Welcome Menu 2 listed in the Actors.
I've tried changing the actor and conversant in the Conversation tab, from Player and Welcome Menu, to Welcome Menu and Welcome Menu 2. I figured if I had both of them speaking to each other, neither will move, so then in world space, the subtitles wont move. This is not working, as the subtitles keep facing the camera when I wear the headset.
Then I tried adding a LookAt() method where I wanted to force the Welcome Menu to face the Welcome Menu 2 gameobject, but that isn't working. When I write LookAt(Welcome Menu 2);, it doesn't change. When I write LookAt(Welcome Menu 2, Welcome Menu, ), it doesn't work either. I also tried turning Welcome Menu 2 into a variable and putting the var into the parameters and it doesn't change. However, when I write LookAt(Welcome Menu 2, Welcome Menu, (number)); and put a number in there, it faces towards Welcome Menu 2 for a split second then goes back to facing the camera.
So, my question is, is there a way to keep the subtitles still, in one position, in world space, without facing the camera in the headset? Is my way of solving it a way that will work? Is there a better way? Please help.
I'm creating a game in VR and I'm using the dialogue system as a way to instruct the player how to use the controls in the beginning of the game. I've setup an empty gameobject and called it "Welcome Menu." To the Welcome Menu, I've added the Bubble Template Standard UI Subtitle Panel. This is set to world space.
In the Conversation tab, I've used Dialogue Text to display text on screen, and an audio clip is played from the Sequence using AudioWait each time a node is run through.
What I've wanted to do, is keep the subtitles in an absolute position in the world space. When I put on my headset to test it out, by default, the subtitle bubble follows along, tilting, turning as I move my head. I'd like to make it so that the player can walk up to it, read it, listen to it, and interact with it (pressing continue) while learning their controls.
In order to try and keep these subtitles still, I've made another empty game object, called "Welcome Menu 2" and made this into a third NPC character in the Actors tab. So, we have Player, Welcome Menu, and Welcome Menu 2 listed in the Actors.
I've tried changing the actor and conversant in the Conversation tab, from Player and Welcome Menu, to Welcome Menu and Welcome Menu 2. I figured if I had both of them speaking to each other, neither will move, so then in world space, the subtitles wont move. This is not working, as the subtitles keep facing the camera when I wear the headset.
Then I tried adding a LookAt() method where I wanted to force the Welcome Menu to face the Welcome Menu 2 gameobject, but that isn't working. When I write LookAt(Welcome Menu 2);, it doesn't change. When I write LookAt(Welcome Menu 2, Welcome Menu, ), it doesn't work either. I also tried turning Welcome Menu 2 into a variable and putting the var into the parameters and it doesn't change. However, when I write LookAt(Welcome Menu 2, Welcome Menu, (number)); and put a number in there, it faces towards Welcome Menu 2 for a split second then goes back to facing the camera.
So, my question is, is there a way to keep the subtitles still, in one position, in world space, without facing the camera in the headset? Is my way of solving it a way that will work? Is there a better way? Please help.