HoudiniEngineForUnity icon indicating copy to clipboard operation
HoudiniEngineForUnity copied to clipboard

The register input interface priority work correct?

Open watsonsong opened this issue 6 years ago • 0 comments

The blow code: https://github.com/sideeffects/HoudiniEngineForUnity/blob/dc97e8e2501ca39c0416fde8b5021b25dad34e6a/Plugins/HoudiniEngineUnity/Scripts/Utility/HEU_InputUtility.cs#L83

for (int i = numInterfaces - 1; i >= 0; i--) { if (_inputInterfaces[i] != null && _inputInterfaces[i].Priority <= inputInterface.Priority) { _inputInterfaces.Add(inputInterface); //Debug.LogFormat("Registered {0} at {1}. Total of {2}", inputInterface.GetType(), i, _inputInterfaces.Count); break; } }

The inputInterface seems always added into the last but add to the index i?

watsonsong avatar Dec 25 '19 03:12 watsonsong