"OnCharacterAttachCamera" not updating look source

The Highway Man

New member
Hello,

I’m getting the error:

View attachment 2706

When instantiating the character through script, and setting it to be the character of the CameraController.


I have tracked the issue down to being the “OnCharacterAttachCamera” is not executing the event on the Character GameObject, so the character’s ultimate character locomotion script is not having the look source set.

If I drag my character into the scene before hitting play, everything works fine, however bring my character into the scene after hitting play, and them assigning it to the cameraController.Character in the inspector causes the same issue.

View attachment 2707

Is there any way to bypass this? I tried setting it myself, but that still does not execute “OnCharacterAttachCamera” on the character GameObject.

I'm using the newest version of UCC 2.2f2 and Unity 2019.2.2f
 
Top