crossfade between skyboxes

how can i have 2 skyboxes within one scene and crossfade between them according to application state?

There's a script for blending between two skyboxes on the Unify wiki on this page.