简体   繁体   中英

How to change camera with script unity

I have seen other answers for "How to change camera with script unity" but most require setactive which wont work, because I detect characters with Hitboxes. How do I change the camera while retaining the trigger hitbox?

Try using an external hitbox, and have a trigger which triggers another script when the player walks in it to alert the camera to change (disabling).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM