[Optimization] Moved setting of input layout so that it would be called once per group of objects (ie once for game objects and once for ui objects) instead of on a per-object basis.