Forums › 💬 Slate Sequencer › ⚙️ Support › Look at › Reply To: Look at
Hey,
So. There are actually two different bugs here.
To fix the null reference exception error although it is harmless, please open up CharacterInspector.cs and change method in line #33 to the following:
|
1 2 3 4 5 6 7 8 9 |
void SetWireframeHidden(bool active){ if (character != null){ foreach(var renderer in character.GetComponentsInChildren<Renderer>(false)){ EditorUtility.SetSelectedWireframeHidden(renderer, active); } } } |
Then, to fix the reason why the LookAt is not working in play mode, please open up AnimatorTrack.cs and change methods in line #195 to look like the following:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
void StoreSet(){ wasController = animator.runtimeAnimatorController; wasRootMotion = animator.applyRootMotion; wasCullingMode = animator.cullingMode; animator.applyRootMotion = useRootMotion; animator.cullingMode = AnimatorCullingMode.AlwaysAnimate; animator.enabled = false; } void Undo(){ if (animator != null){ animator.runtimeAnimatorController = wasController; animator.applyRootMotion = wasRootMotion; animator.cullingMode = wasCullingMode; animator.enabled = true; } } |
The change above relevant to the original file, is basically where the ‘animator.enabled’ line appears.
If you have any trouble with applying the changes above, just drop me an email (support@paradoxnotion.com) and I can send you the modified fixed files instead.
Thanks.
