Question by
CTKRocks · Jul 19, 2016 at 06:50 PM ·
movementlocomotionlocomotion system
Locomotion System Monitor Footsteps
Hey @runevision , I was using your Locomotion System asset and when following the tutorial I came across a problem.. Everything worked fine until I added the Leg Animator and it said:
NullReferenceException: Object reference not set to an instance of an object
LegAnimator.MonitorFootsteps () (at Assets/Locomotion System Files/Locomotion System/LegAnimator.cs:1888)
LegAnimator.LateUpdate () (at Assets/Locomotion System Files/Locomotion System/LegAnimator.cs:745)
Which took me to here:
private void MonitorFootsteps () {
for (int legNr=0; legNr<legStates.Length; legNr++) {
LegState legState = legStates[legNr];
switch (legState.phase) {
How can I fix this?
Comment
Answer by runevision · Jul 19, 2016 at 07:30 PM
Which version of Unity are you using? The Locomotion System on the Asset Store is only supported for Unity 4.x.