Class LocalizedTextAssetEditor
- Namespace
- SurvivorsMaker.Editor
- Assembly
- SurvivorsMaker.Editor.dll
Translation table: one row per key, one column per language. An empty cell means "not translated" (the entry is removed, so the authored text shows). Keys added here without any translation are kept only while the inspector is open.
[CustomEditor(typeof(LocalizedTextAsset))]
public sealed class LocalizedTextAssetEditor : MakerAssetEditor
- Inheritance
-
ObjectScriptableObjectEditorLocalizedTextAssetEditor
- Inherited Members
-
Editor.SaveChanges()Editor.DiscardChanges()Editor.CreateEditorWithContext(Object[], Object)Editor.CreateEditor(Object)Editor.CreateEditor(Object[])Editor.DrawDefaultInspector()Editor.Repaint()Editor.OnInspectorGUI()Editor.RequiresConstantRepaint()Editor.DrawHeader()Editor.DrawFoldoutInspector(Object, ref Editor)Editor.HasPreviewGUI()Editor.CreatePreview(VisualElement)Editor.GetPreviewTitle()Editor.OnPreviewGUI(Rect, GUIStyle)Editor.OnInteractivePreviewGUI(Rect, GUIStyle)Editor.OnPreviewSettings()Editor.GetInfoString()Editor.DrawPreview(Rect)Editor.ReloadPreviewInstances()Editor.UseDefaultMargins()Editor.MoveNextTarget()Editor.ResetTarget()Editor.hasUnsavedChangesEditor.saveChangesMessageEditor.targetEditor.targetsEditor.serializedObjectEditor.finishedDefaultHeaderGUIScriptableObject.SetDirty()ScriptableObject.CreateInstance<T>()Object.GetEntityId()Object.GetInstanceID()Object.GetHashCode()Object.InstantiateAsync<T>(T)Object.InstantiateAsync<T>(T, Transform)Object.InstantiateAsync<T>(T, Vector3, Quaternion)Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion, Transform)Object.Instantiate(Object)Object.Instantiate(Object, Scene)Object.Instantiate<T>(T, InstantiateParameters)Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T)Object.Instantiate<T>(T, Vector3, Quaternion)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.DontDestroyOnLoad(Object)Object.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.FindObjectsByType<T>(FindObjectsSortMode)Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)Object.FindObjectOfType<T>()Object.FindFirstObjectByType<T>()Object.FindAnyObjectByType<T>()Object.FindFirstObjectByType<T>(FindObjectsInactive)Object.FindAnyObjectByType<T>(FindObjectsInactive)Object.ToString()Object.nameObject.hideFlags
Constructors
LocalizedTextAssetEditor()
public LocalizedTextAssetEditor()
Methods
AddLanguage(string)
public void AddLanguage(string code)
Parameters
codestring
AddPendingKey(string, bool)
public void AddPendingKey(string key, bool rebuild = true)
Parameters
CreateInspectorGUI()
public override VisualElement CreateInspectorGUI()
Returns
- VisualElement
Issues()
The asset's own Validate() issues. Override for assets that are not content definitions.
protected override List<string> Issues()
Returns
Keys()
Keys of every language plus pending ones, sorted.
public List<string> Keys()
Returns
Languages()
public List<string> Languages()
Returns
SetValue(int, string, string)
Sets one cell. Empty text removes the translation, so the authored text shows.
public void SetValue(int language, string key, string value)