- Home /
How to commit to the Asset Server from (Editor) Script?
I want to implement a pretested commit scheme with as much automation as possible. So, is it possible to either commit from an editor script or hook into the commit function (pre-commit) that is invoked from the asset server editor window? I want to be able to run some unit tests before the commit happens. A workaround using external version controll is not desirable as the graphics department is not very tech savvy and will hardly work with something other than the built in asset server.
Answer by Tom 17 · Jun 14, 2011 at 07:01 AM
Seems there is now way to do that. One possibility is to ignore the Asset Server option from the Windows menu and add a seperate option like "pre-tested commit" and run pre-commit tests. According to the result either the Asset Server menu item is invoked ( EditorApplication.ExecuteMenuItem ) or an error message is displayed.
Pre-testet commits increase the efficiency of agile distributed development, so it's highly recommended to employ it on every project that is worked on in a distributed fashion.
Your answer

Follow this Question
Related Questions
How can i use the Instancing in max to Place/Replace/Instantiate in Unity 3 Answers
Can you use a more performant undo function than RegisterSceneUndo with DestroyImmediate? 2 Answers
How can you access scripts in a folder called "Editor" from elsewhere? 2 Answers
How can I delete the Main Camera using a script? 1 Answer
System.UnauthorizedAccessException to Temp dll.mdb when running project 0 Answers