It would be great to have an action for changing this to another Transform.
I have times when the characters should change speaking pos depending on whether they are standing/laying/sitting and depending on which way they are facing.
I think having an action that can assign another Transform would be better than changing the actual pos of the existing one, since there would be no need to store away the original pos when setting it back. It would also be great to be able to say "release" to return it to the original/previous position.
Thanks
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
The Transform can be set through script by updating the Char script's speechMenuPlacement variable.
Sample Action:
I'd still recommend updating the position of a single transform, and this can be done through animation. A sub-layer in your character's Animator could have animations for each of the positions the transform could appear at, and this state would be saved in the Remember Animator component as well.
* saving the pos
* being able to change back to the original pos
If I use this action it will be easy to change back to the original pos, but the fact that the transform was changed won't be persisted in saves.
If I change the pos of the existing transform, it will be persisted in saves but there's no easy way to return to the original pos.
Attaching the Remember Transform component will save any change in position.
To save a change in transform, you just need a custom Remember component - see this tutorial.