SaveBackup() public méthode

public SaveBackup ( ) : void
Résultat void
Exemple #1
0
 private static bool GetTextEditor(out TextEditor te)
 {
     UIUnityEvents.submit = false;
     if (!UIUnityEvents.focusSetInOnGUI && UIUnityEvents.requiresBinding && UIUnityEvents.lastInput && UIUnityEvents.lastInputCamera)
     {
         GUI.FocusControl("ngui-unityevents");
     }
     UIUnityEvents.Bind();
     te = GUIUtility.GetStateObject(typeof(TextEditor), UIUnityEvents.controlID) as TextEditor;
     if (!UIUnityEvents.lastInput)
     {
         te = null;
         return false;
     }
     GUIContent gUIContent = UIUnityEvents.textInputContent;
     if (gUIContent == null)
     {
         gUIContent = new GUIContent();
         UIUnityEvents.textInputContent = gUIContent;
     }
     gUIContent.text = UIUnityEvents.lastInput.inputText;
     te.content.text = UIUnityEvents.textInputContent.text;
     te.SaveBackup();
     te.position = UIUnityEvents.idRect;
     te.style = UIUnityEvents.textStyle;
     te.multiline = UIUnityEvents.lastInput.inputMultiline;
     te.controlID = UIUnityEvents.controlID;
     te.ClampPos();
     return true;
 }