1. Character controller variant (Ultimate Character Controller, First Person Controller, etc).
UCC 3.0.10; UNITY 2021.3.19f1
2. Unity version (include which SRP, beta Unity versions aren't supported)
URP
3. Bug description
I cannot set the AbilityFloat to -1 (e.g. if using an axis input). It seems the code in AnimatorMonitor checks this and prevents it (I assume a copy-paste error or is there a reason for this?):
line 1131:
4. Steps to reproduce
Simply try setting the float to -1 in an ability override of the AbilityFloatData.
Setting to -0.9 works fine, for example.
5. The full error message (if any)
N/A
UCC 3.0.10; UNITY 2021.3.19f1
2. Unity version (include which SRP, beta Unity versions aren't supported)
URP
3. Bug description
I cannot set the AbilityFloat to -1 (e.g. if using an axis input). It seems the code in AnimatorMonitor checks this and prevents it (I assume a copy-paste error or is there a reason for this?):
line 1131:
Code:
for (int i = 0; i < m_CharacterLocomotion.ActiveAbilityCount; ++i) {
if (setAbilityIndex && m_CharacterLocomotion.ActiveAbilities[i].AbilityIndexParameter != -1) {
abilityIndex = m_CharacterLocomotion.ActiveAbilities[i].AbilityIndexParameter;
setAbilityIndex = false;
}
if (setStateIndex && m_CharacterLocomotion.ActiveAbilities[i].AbilityIntData != -1) {
intData = m_CharacterLocomotion.ActiveAbilities[i].AbilityIntData;
setStateIndex = false;
}
if (setAbilityFloatData && m_CharacterLocomotion.ActiveAbilities[i].AbilityFloatData != -1) {
floatData = m_CharacterLocomotion.ActiveAbilities[i].AbilityFloatData;
setAbilityFloatData = false;
}
}
4. Steps to reproduce
Simply try setting the float to -1 in an ability override of the AbilityFloatData.
Setting to -0.9 works fine, for example.
5. The full error message (if any)
N/A