Switch Platform 2 generates and restores the caches per platform per Unity version so switching between platforms is now blazing fast. No more asset reimport frustration!
Direct Email | Buy on Asset Store (not yet available) | Forum discussion | Online Documentation
Features
Full C# source code
Supports Build Targets : Windows, OSX, iOS, Android, WebGL and Web Player
Support Unity 4.3+ and Unity 5.x (Free & Pro, Windows & Mac)
Generate and update cache for all platforms
Generate caches for each Unity version used to open project
Works seamlessly with Unity Cache Server
Screenshot
After several months of work, we are very excited that Switch Platform 2 is on the way to the Asset Store with the introduction price of $10 for the first month.
Any feedback, suggestions or bug report is more than welcome as always !
Assets/SwitchPlatform2/Editor/core/sp2_Unity.cs(151,46): error CS0117: SceneManager' does not contain a definition for GetSceneAtā
Assets/SwitchPlatform2/Editor/core/sp2_Unity.cs(152,52): error CS1061: Type object' does not contain a definition for nameā and no extension method name' of type objectā could be found (are you missing a using directive or an assembly reference?)
Assets/SwitchPlatform2/Editor/core/sp2_Unity.cs(152,65): error CS1061: Type object' does not contain a definition for nameā and no extension method name' of type objectā could be found (are you missing a using directive or an assembly reference?)
When using Unity projects with perforce, you only need to track 2 folders : Assets and Project Settings (Red icons in the image below). Also note that you should to turn on Force-Text mode so you can compare the changes in your project.
We create the cache in the project folder named SP2_Cache but you should not track this folder in your perforce (Iām using git and also ignore that folder, you can see that in the image below Itās not marked as red / green). Actually I can add support for setting custom location for the SP2_Cache folder but I donāt see how it benefits your workflow. Any reason for this?
We generate the cache for the unity version you are using and each platform youāve been worked with. In the screenshot below you can see whatās inside SP2_Cache folder
Thanks for showing your interest, Brian.
If you are having any question or suggestion please donāt hesitate to tell!
First, this asset is generally a huge time saver for me, however, it has some issues. It usually crashes unity when switching which is probably something in my project but then reload and its switched so it sorta works.
But today I got the attached image, clearly IOS was already cached and now as I wait an hour for unity I am writing you.
@phoenixrising : The previous version of SP2 sometimes crash Unity when switching platform but as It not always occurs, I did not catch it in the first place. I got a report on that and was able to reproduce and this new version already fixed that.
I can explain in short is that this is somehow related to the bug causing Unity to crash. But the crash is now fixed so it should not happen again!
Thanks a lot @phoenixrising for taking time to report it
@everyone : Switch Platform 2 version 0.9.7 is now available, this version is much more stable so please update if you havenāt
Hi there,
just tried using switch platform 2 with Unity 5.6.1f1 and all the targets other than the current one (WebGL) arenāt selectable - they are greyed out.
Any idea whatās up?
Thanks,
Dave
Forgive my ignorance - @thienhaflash can you expand upon this please?
Is this for larger projects - that take longer times to āswitchā between platforms at the build stage?
Iāve built for webgl, pc, and android without hardly a pause in the editor, so Iām wondering why a tool like this is beneficial to other developers.
My game is not (at this time) very big, 3 characters, 2 scenes, some particles and an dynamic array for destructible components, but as the game grows Iām still interested in publishing to these 3 platforms so Iād like to know if this would be helpful to me in the future.
Thanks for supporting us by buying the asset. Unity changed something in Unity 5.6 and that broke SP2, I already made a fix and PM you.
@theANMATOR2b heANMATOR2b : Thanks a lot for showing your interest. Yes, this one is for bigger project with many assets when you can not switch platform quickly because Unity keeps reimport assets for each platform.
Best regards, and thanks again!
p/s : An update for SP2 v0.9.9 is on the way making SP2 compatible with Unity 5.6