Page 2 of 2

Re: Simple gifting based on items?

Posted: Thu Sep 15, 2022 9:48 pm
by CheeseY
ok cheers!

more questions lol..


Is there an event i can subscribe to when the dialogue system disables/moves the current active camera?
Or is there some sort of public variable tracking the current active camera?


It's just i have a fairly simple look-at script and its currently looking at the wrong camera when conversation starts.. I can get around this by putting in a function on a delay after conversation starts that searches through cameras in the scene and finds the 'not disabled' camera...

But i figured i'd ask because i'm guessing you're tracking it somewhere and my solution probably isn't very performant lol.


cheers again!

Re: Simple gifting based on items?

Posted: Thu Sep 15, 2022 10:04 pm
by Tony Li
There's no such event. If the conversation uses a Camera(), LiveCamera(), or Zoom2D() command, it will take control of the camera. If a camera is assigned to the Dialogue Manager GameObject's Display Settings > Camera & Cutscene Settings > Sequencer Camera, it will switch to that camera. (If a prefab is assigned to the Sequencer Camera field, it will instantiate a prefab on start and keep it inactive until needed.) If nothing is assigned to the Sequencer Camera field, it will use whatever active camera is tagged "MainCamera". If no camera is tagged MainCamera, it will create a temporary camera.