Unlimited Librarian Name Length

If you liked this item, please rate it up on Steam Workshop page.

Author: Phillip

Last revision: 1 Sep, 2024 at 22:27 UTC

File size: 49.25 KB

On Steam Workshop

Description:

Surprised that this was never made, so here it is.

Makes the character limit for names (probably) infinite: Now you can address your OC with their full title!

Shoutout to Project Moon Community Hub Discord and Cyaminthe for writing the code and handholding me though the whole process.

Here is code. (idk why no spaces)

class Initializer : ModInitializer
{
public override void OnInitializeMod()
{
var checkerObject = new GameObject("LimitChecker");
UnityEngine.Object.DontDestroyOnLoad(checkerObject);
checkerObject.AddComponent<LimitChecker>();
}

class LimitChecker : MonoBehaviour
{
void Update()
{
if (UICustomizePopup.Instance)
{
UICustomizePopup.Instance.namePanel.inputField.characterLimit = 0;
Destroy(gameObject);
}
}
}
}