I’m trying to change the priority of a camera when it interacts with a certain entity, the problem is I don’ know the coding with it, can I get some help with this?
You should be able to acces it, like the code below.
this.entity.camera.priority = 1;
Okay thank you so much! It changes the camera, now I just need to figure out the code for it the change when it touches an entity.
Would I be able to get a code for that as well?
Yes, you can find it on the page below.
https://developer.playcanvas.com/en/tutorials/collision-and-triggers/