|
Post by gonzalo on Feb 25, 2023 21:35:58 GMT
Hi, Im teleporting to a new Scene and I cant make my camera keep following player (when player reach new scene, camera loss the target). Wanted to ask what would be a good way to do it, should I use the AddCameraTarget() function to add the player target? Currently I have different scenes and I was planning to have a new camera in each scene, hope you guys can give me some hint on this, thank you.
|
|
|
Post by gonzalo on Feb 27, 2023 5:24:13 GMT
Hi found a solution, when I change rooms, in the Prefab teleport that I have I added on start() "ProCamera2D.Instance.AddCameraTarget(PlayerData.instance.transform);" This adds my transform of the main player and works good for now. thank you.
|
|
|
Post by Luís Pedro Fonseca on Mar 11, 2023 11:35:19 GMT
Hi gonzalo, sorry for the late reply. Glad you figured it out. Let me know if you have any other questions. Cheers
|
|