My game is set to 2.5D mode,but I need some features of 2D mode such as 2D pathfinding and scrollable background in some scenes.
I tried to load AC's 2D demo with my own ManagerPackage,which is 2.5D setting.Definitely, the cutscene,pathfinding and hotspots were all invalid(pathfinding only works in X axis).Then I changed the Camera perspective to 2D manually in runtime,everything became fine.
I found the variable in SettingManager.cs,can I simply change my game's perspective mode by changing the value of AC.KickStarter.settingManager.cameraPerspective?Will this cause any problems?
Comments
Know that you can still use the GameCamera2D prefab in 2.5D scenes, which allows for scrolling. You'll have to rely on 3D NavMeshes still, but otherwise that would avoid you having to change perspective mid-game.
If placed in an ActionList asset, you could also make use of the Scene Attributes feature so that the same asset can be run for all scenes, and set the perspective accordingly. More on Scene Attritbues can be found in Section 7.6 of the Manual.