About switching cameras

I’m sorry for asking such a basic question, but I have no idea how to switch cameras.
I followed the manual and added a ZoomCamera2D node to InitialCamera, but when I select “Change Camera” in Visual Script, it displays “Target Camera ID.”
What exactly is this “Camera ID”? It seems I can only specify a number—does this refer to the “Target ID”?
Must the Target ID be a number? Or does it refer to the order in which Target IDs were placed?
The manual doesn’t explain anything beyond this crucial point.

I wanted to configure the camera to follow a different object only during zooming, but once I switch cameras, zooming no longer works regardless of the settings I try.
I spent an entire day experimenting with various options but am now completely stuck. If anyone knows the solution, I would greatly appreciate your help.

It’s right here:

Please refer to the section about switching between multiple cameras.

Thank you. Of course, I have already viewed that topic.

  1. You will now be able to switch cameras using the “Change Camera” action in Visual Scripting.

However, I couldn’t view the continuation of this information in my environment—possibly because it doesn’t exist at all. I couldn’t understand what the “Camera ID” number, which can only be specified in Visual Scripting, refers to. Since it can only be specified by number, it seems to be different from the Target ID, but the manual is outdated, so perhaps the specification or name has changed in the update. There is no explanation in the properties either.

I think the camera ID refers to the number in the camera list of the GameScene node.

This action seems to apply only to the cameras registered in that list.

Sorry for the insufficient explanation.
As WitchLyrica mentioned, the camera ID can be set in the camera list of the GameScene node.

  1. Add a ZoomCamera2D node to the scene.
  2. Add the ZoomCamera2D node to the camera list in the properties of the GameScene node.

By following these steps, the camera will be registered in the camera list and an ID will be assigned. In the attached image, InitialCamera is assigned camera ID 0.

Thank you. I had already set this up, but it seems I had made a mistake in other settings; after changing the order of execution actions, it started working properly. I apologize for the trouble.

It seems I had made a mistake in other settings, and I have now resolved it.

I was suspicious that my interpretation might have been wrong, but thanks to your response, I gained confidence in the specifications for camera switching, which led me to identify the root cause.

Thank you.

1 Like