Hi,
Does SequencerCommandLookAt get Actor name (string)?
If not, is there any way to pass in the Actor name and get the transform or gameobect based on the Actor name in custom SequenceCommand?
SequencerCommand LookAt and its parameter
Re: SequencerCommand LookAt and its parameter
Hi,
Yes. It checks in this order:
- If the name is 'speaker' or 'listener', it uses the node's speaker or listener.
- If the name starts with 'tag=' such as 'tag=Player', it finds a GameObject with that tag.
- If a Dialogue Actor uses the name, it returns the Dialogue Actor's GameObject.
- Otherwise it finds a GameObject (active or inactive) whose GameObject name matches.
Re: SequencerCommand LookAt and its parameter
Thank you for the answer
does it work same way for LookAnimator() sequence command?
does it work same way for LookAnimator() sequence command?
Re: SequencerCommand LookAt and its parameter
Yes, except LookAnimator() has an additional special keyword 'all' that you can use, too.