#MenuItem
1 messages · Page 1 of 1 (latest)
So.. yeah. Basically I have 2 build targets (dev and prod) and many number of versions (1.1, 1.2, 1.3, 1.4, 1.5). Currently, my workflow is to build things manually by getting the 1.x branch, editing a source file to contain the proper IP address (dev or prod), building the clients, building the server, and deploying it all. It's a mess
So what I want to do is be able to drive this from Unity via menu items
So.. I have a shared library that I am currently copying into Unity's plugin directory at build time - I can stuff a version number in there as a static string - but I can't display that in a MenuItem() attribute since it requires a call to that library
Lemme back up, end goal here is to have a unity menu with something like this:
* Build
- dev
- 1.1
- 1.2
- 1.3
- 1.4
- 1.5
- prod
- 1.1
- 1.2
- 1.3
- 1.4
- 1.5
So I can just click on a menu item and build and deploy the version I want, along with the embedded configuration for the client (either connecting to the dev server or prod server)
Confused yet? 🙂
Well I definitely don't have ideas to help, sorry haha