Easiest way to check spelling within Unity's STORY TEXT AREA?
I've searched high and low and only found one place where you can change the .json file and incorporate a spell check button within UNITY, amazing, right? Well, installing it is a bit of a pain, and am looking for some guidance/help. I have tried over and over again.
The json file was edited and works fine within unity and is loaded into the packages manager, now what about the other script? Create a new script? add it to an existing one? Sorry for the questions, but I am new to this. Cheers!
Here is the link to what I have found on Github....
https://github.com/ashblue/unity-simple-spellcheck/blob/master/README.md
Examples are here:
This will create a simple spell check button that evaluates a custom text area. If you need some basic spell checking for items or large blocks of text this should help.
public class ExampleDialogue : ScriptableObject {
[TextAreaSpellCheck]
public string text;
}
You can log text from anywhere in your game with this pattern. You'll need to do this if you have large amounts of dialogue and you want to evaluate it all at once.
public class SpellCheckAllDialogue {
[MenuItem("Spell Check/All Dialogue")]
public static void CheckAllDialogue () {
var logList = new List<LogEntry>();
var guids = AssetDatabase.FindAssets($"t:{typeof(ExampleDialogue).Name}");
foreach (var guid in guids) {
var path = AssetDatabase.GUIDToAssetPath(guid);
var asset = AssetDatabase.LoadAssetAtPath<ExampleDialogue>(path);
if (!SpellCheck.Instance.IsInvalid(asset.Title) && !SpellCheck.Instance.IsInvalid(asset.Text)) continue;
var log = new LogEntry($"{asset.Title} {asset.Text}", () => {
SpellCheck.Instance.ClearValidation();
SpellCheck.Instance.AddValidation("Title", asset.Title);
SpellCheck.Instance.AddValidation("Text", asset.Text);
Selection.activeObject = asset;
});
logList.Add(log);
}
SpellCheck.Instance.ShowLogs("All Example Dialogue Errors", logList);
}
}
Your answer
![](https://koobas.hobune.stream/wayback/20220613024005im_/https://answers.unity.com/themes/thub/images/avi.jpg)