Hi, hope this is in the right category,
We are re-releasing a point and click adventure game, which uses rendered background images that have hotspots that fade into other backgrounds. We were trying to determine whether to use separate scenes for each background, or whether to use one scene for each area, and have multiple cameras that we would switch between whenever the hotspot is selected. We thought that maybe having only one scene would be easier to load, etc. If anyone has advice on this, it would be appreciated.
On to the main issue:
I created a use interaction for a hotspot on one background, that would lead to another camera in the same scene looking at a different background. However, when I select Camera > Crossfade, and try to select the new camera, it only says "None (Camera)." What am I missing here? Why doesn't the action recognize the existing secondary camera already in the scene?
I hope this makes sense. I am new to Unity and Adventure Creator, so any advice is greatly appreciated. Thanks in advance for any help.
Comments
For custom cameras, attach the "_Camera" component found in Assets/AdventureCreator/Scripts/Camera. That will allow it to be useable by AC's camera system.
Otherwise, you can use the Scene Manager to create your camera objects which already have the correct components attached.
For more on cameras, please see Section 4 of the updated Manual included with the latest (v1.58) release of AC. Section 4.3 covers the use of custom camera types.
The MainCamera itself can be left alone, as it is handled automatically by AC. Use the Scene Manager to create a default camera, and then use the various Camera Actions to change which "GameCamera" is active in-game. The MainCamera will copy the active GameCamera's transform and camera values automatically.
So far as how your scenes are managed goes, I would recommend keeping each "location" in a single scene, even if each location has multiple views/cameras. Since all you're using is images for backgrounds, it shouldn't be too memory intensive, and it'll be more convenient to work with.
Thanks for your advice