FlaxEngine / FlaxAPI

Old repository with C# Editor and C# API for creating games in Flax Engine

Home Page:https://flaxengine.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Input.InputText is a null terminated string

stefnotch opened this issue · comments

Input.InputText is a null terminated string.

Test code:

        private void Update()
        {
            string text = Input.InputText;
            if (!string.IsNullOrWhiteSpace(text))
            {
                SpawnLetter(text);
                Debug.Log(text[0] == '\0'); // True
            }
        }

Thanks for report! Fixed. Wait for the update.

When no text is entered the Input.InputText will gracefully return string.Empty