- Home /
how to make a prototype of imani (paladins) in unity?
how do I script the character to press a key and the camera goes to the secondary character without moving the main character's position, for example the Paladins imani, any help and welcome :)
Answer by MarkMaa · Sep 03, 2021 at 10:34 AM
Example of realization Add a Transform point to the characters, where the camera should be by default. Disable the camera controller that is tied to the player and move the camera to the camera point of the other character, then activate the camera controller for the second character when the camera reaches the desired point (for example, different controllers have different Cinemachine parameters for the human player and the dragon player, the camera looks from different angles and behaves differently when the mouse moves). Of course, in the script for controlling the camera movement, the connection between which character is currently active and which character needs to be moved upon activation must be kept.