Page 1 of 1
SequencerCommand LookAt and its parameter
Posted: Mon Oct 12, 2020 6:01 am
by fkkcloud
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?
Re: SequencerCommand LookAt and its parameter
Posted: Mon Oct 12, 2020 9:36 am
by Tony Li
Hi,
fkkcloud wrote: ↑Mon Oct 12, 2020 6:01 amDoes SequencerCommandLookAt get Actor name (string)?
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
Posted: Mon Oct 12, 2020 2:06 pm
by fkkcloud
Thank you for the answer
does it work same way for LookAnimator() sequence command?
Re: SequencerCommand LookAt and its parameter
Posted: Mon Oct 12, 2020 3:04 pm
by Tony Li
Yes, except LookAnimator() has an additional special keyword 'all' that you can use, too.