Swimming reference error in new Climbing pack


Active member
Hello, I just downloaded the new climbing add-on from the Asset Store, and instantly got that error : "The type or namespace name 'Swimming' could not be found (are you missing a using directive or an assembly reference?)"

It comes from OnAbilityActive in TraversalClimb at line 118 :

        /// <summary>
        /// The character's ability has been started or stopped.
        /// </summary>
        /// <param name="ability">The ability which was started or stopped.</param>
        /// <param name="active">True if the ability was started, false if it was stopped.</param>
        private void OnAbilityActive(Ability ability, bool active)
            if (!(ability is Swimming.Swim)) {

            m_HasBeenGrounded = false;

The Swimming class is what is causing the issue, it is not prevented by the #if. It's easy to fix by commenting but this shouldn't happen on import anyway.
My copy paste failed me. Within DefineCompilerSymbols.cs it should check for the swimming pack instead of climbing:

var swimmingExists = TypeUtility.GetType("Opsive.UltimateCharacterController.AddOns.Swimming.Editor.SwimmingAddOnInspector") != null;

This requires a controller update though so for now I'll just remove that block from climbing. Thanks!