InputUnlocker.cs 608 B

1234567891011121314151617181920212223
  1. using BepInEx;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using UnityEngine;
  7. using UnityEngine.SceneManagement;
  8. namespace InputUnlocker
  9. {
  10. class InputUnlocker : BaseUnityPlugin
  11. {
  12. public override string Name => "Input Length Unlocker";
  13. protected override void LevelFinishedLoading(Scene scene, LoadSceneMode mode)
  14. {
  15. foreach (UnityEngine.UI.InputField gameObject in GameObject.FindObjectsOfType<UnityEngine.UI.InputField>())
  16. {
  17. gameObject.characterLimit = 99;
  18. }
  19. }
  20. }
  21. }