Accessing Custom Classes with Custom Sequencer Commands
Posted: Thu Aug 08, 2024 3:10 am
Hi,
Is it possible for me to access classes not within the Dialogue System using a custom Sequencer Command?
This is what I would like to do: Find the mid point between a speaker and listener and use that as a Camera angle when calling the Camera() sequencer command.
I'm not sure if there is a better/correct way to do this but this is how I'm thinking of approaching it:
Hope you could help me with this issue!
Is it possible for me to access classes not within the Dialogue System using a custom Sequencer Command?
This is what I would like to do: Find the mid point between a speaker and listener and use that as a Camera angle when calling the Camera() sequencer command.
I'm not sure if there is a better/correct way to do this but this is how I'm thinking of approaching it:
- Create custom camera angle set with a game object named "TwoPerson"
- Add a new script to the TwoPerson gameobject named "MidPoint" that has fields to assign two GameObjects and updates the position of TwoPerson gameobject
- In a new custom Sequencer Command, get the TwoPerson gameobject and access the midpoint class to assign the speaker and listener
Hope you could help me with this issue!