Forum rules - please read before posting.

Conversation camera crashes Unity if FirstShot > Apply Immediately is selected.

Per the title.
Given:
First Shot is enabled
Shot Type is Centered
Focus on character B is disabled
Apply immediately is enabled
Then:
Upon triggering a "Camera:Switch" to the conversation camera, Unity will crash.

Diagnosis:
Line 160 of ConversationCamera.cs creates a recursive call to OnSwitchCamera() function, which keeps looping and eventually fills the call stack, causing a crash.

Fix:
What worked for me is to use a different override of this method that specifies the shot, which doesn't cause the call to OnSwitchCamera(). Line 160 has been modified as follows: activeCameraShot.Apply (ownCamera, activeCameraShot);

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.