#elif (ENABLE_INPUT_SYSTEM) Debug.Log("INPUT_System"); #elif (ENABLE_INPUT_SYSTEM && ENABLE_LEGACY_INPUT_MANAGER) Debug.Log("INPUT_System"); #else Debug.Log("INPUT_Manager"); #endif
ContentScrollSnapHorizontal? I have one in my canvas, with no children until runtime (children are populated using a factory in code) and it gives errors (noticed it was not checking child count or null-checking contentPositions), so fixing these up, I notice that I can't scroll and snap to items. I've tried calling
UpdateLayoutbut this seems to also not make a difference. If I keep 1 item as a child before running the game, it snaps right to the one item, but as soon as my factory adds more, it doesn't allow snapping to any new items, only the first, and now the snapping position is incorrect.