Set Asset Server configuration in Unity with scripting

Hello everyone,

As you can see I’m new here, I’ve been previously searching on the forum for my question, but I haven’t find anything.

I was wondering if there is a way to set the properties of the Asset Server in Unity by scripting? (in the Server window)

I wrote a python script to create a project, launch an “-assetServerUpdate” with the command line arguments and then open the project.

The problem is, the command “-assetServerUpdate”, like it is written in the documentation, bypass any configuration in Unity of the asset Server.

My script goal is to set up the environement for a specific project. I know there is a way to customize Unity with the UnityEditor library for example. I would like to do the same for the configuration.

My script is pretty much outside Unity, but I could call another script inside to configure the server.

Regards

I found a solution to my problem, however it’s not very clean.

What I do with my script is that I edit a template of the ServerPreferences.plist in ProjectName/Library and fill each “Key” with the desired value.

If anyone know a better solution through Unity Command Line, please reply here.

Thanks