Exemple #1
0
        public static InputControl[] TryFindControls(InputControl control, string path, int indexInPath = 0)
        {
            var matches = new InputControlList <InputControl>(Allocator.Temp);

            try
            {
                TryFindControls(control, path, indexInPath, ref matches);
                return(matches.ToArray());
            }
            finally
            {
                matches.Dispose();
            }
        }
 public InputControlListDebugView(InputControlList <TControl> list)
 {
     m_Controls = list.ToArray();
 }