暮林 发表于 2014-11-11 11:47

各位前辈们,我的Java脚本为什么不能保存呢?

重装过了    结果还是不能保存   完全的学徒    希望前辈们帮我指出来一下    不知道是哪儿的错误


脚本:
#pragma strict


function Start () {


}


function Update () {
transform.Translate(Vector3.forward*Time.deltaTime);
}








这是脚本语句 只有一句

暮林 发表于 2014-11-11 11:50

我不会发图片

这是错误信息:


Error while executing command: Save



然后点开的详细信息:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.IOException: The process cannot access the file because it is being used by another process.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

   at System.IO.__Error.WinIOError()

   at System.IO.File.InternalMove(String sourceFileName, String destFileName, Boolean checkHost)

   at Mono.TextEditor.Utils.TextFileUtility.SystemRename(String sourceFile, String destFile) in c:\BuildAgent\work\d478831d940d36a4\monodevelop\main\src\core\Mono.Texteditor\Mono.TextEditor.Utils\TextFileUtility.cs:line 206

   at Mono.TextEditor.Utils.TextFileUtility.WriteText(String fileName, String text, Encoding encoding, Boolean hadBom) in c:\BuildAgent\work\d478831d940d36a4\monodevelop\main\src\core\Mono.Texteditor\Mono.TextEditor.Utils\TextFileUtility.cs:line 193

   at MonoDevelop.SourceEditor.SourceEditorView.Save(String fileName, Encoding encoding) in c:\BuildAgent\work\d478831d940d36a4\monodevelop\main\src\addins\MonoDevelop.SourceEditor2\MonoDevelop.SourceEditor\SourceEditorView.cs:line 672

   at MonoDevelop.SourceEditor.SourceEditorView.Save(String fileName) in c:\BuildAgent\work\d478831d940d36a4\monodevelop\main\src\addins\MonoDevelop.SourceEditor2\MonoDevelop.SourceEditor\SourceEditorView.cs:line 588

   at MonoDevelop.Ide.Gui.Document.Save() in c:\BuildAgent\work\d478831d940d36a4\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\Document.cs:line 355

   at MonoDevelop.Ide.Gui.ViewCommandHandlers.OnSaveFile() in c:\BuildAgent\work\d478831d940d36a4\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\ViewCommandHandlers.cs:line 65

   --- End of inner exception stack trace ---

   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)

   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)

   at MonoDevelop.Components.Commands.CommandHandlerInfo.Run(Object cmdTarget, Command cmd) in c:\BuildAgent\work\d478831d940d36a4\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Components.Commands\CommandManager.cs:line 1922

   at MonoDevelop.Components.Commands.CommandManager.<>c__DisplayClassb.<DispatchCommand>b__2() in c:\BuildAgent\work\d478831d940d36a4\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Components.Commands\CommandManager.cs:line 1045

   at MonoDevelop.Components.Commands.CommandManager.DispatchCommand(Object commandId, Object dataItem, Object initialTarget, CommandSource source) in c:\BuildAgent\work\d478831d940d36a4\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Components.Commands\CommandManager.cs:line 1062

GGLB 发表于 2017-3-9 20:20

很不错

J.Sad 发表于 2017-3-9 20:17

楼主是超人

brokenwing 发表于 2017-3-9 20:57

顶顶多好

天不孤 发表于 2017-3-9 20:18

很好哦

brokenwing 发表于 2017-3-9 20:24

LZ真是人才

lj34207310 发表于 2017-5-5 10:47

很不错

Copyright 发表于 2017-5-5 10:29

顶顶多好

blackyh 发表于 2017-5-5 10:49

真心顶
页: [1]
查看完整版本: 各位前辈们,我的Java脚本为什么不能保存呢?