- Home /
What's the best way to get the current change set number from the Asset Server?
Hello Everybody!
I want to introduce a pre build step where I ask the Asset Server for its current change set, write that number into an Ascii file and include it into my built. Turns out I encounter several problems:
There is no such thing as a pre build step -> I solved that by introducing my own build command.
I can't seem to get any information from the AssetServer. Do I really need to open my own PostgreSQL connection?
And if so, which would be the best way to do this? I seem to have some trouble with System.Data and Npgsql in Unity.
Thanks a lot!
It's been a year since this was asked, but was there any solution you found?
I am in the same exact same situation where I would like to document the assetserver's 'changeset' number at the time of update before the builds are created are created.
As of 02/25/2014 - Unity Support Response:
Thanks for reaching out. That info can't be accessed from code, as there is no programmability API for the Asset Server. We recommend the Perforce or PlasticSC$$anonymous$$ integrations (also included in the Team License add-on) for users that need more control and flexibility in their asset management. $$anonymous$$ore info is available at http://docs.unity3d.com/Documentation/$$anonymous$$anual/Versioncontrolintegration.html.
Looks like we will have to wait for an official API to get the latest changeset number form the DB.
Your answer
Follow this Question
Related Questions
How to import the object from server to unity 2 Answers
,Asset Server Timeout 2 Answers
Local Asset Server log? 0 Answers
Properties that version control ignores 0 Answers