Search Unity

Custom Procedural Skybox disappears at build (Android)

Discussion in 'World Building' started by rich-gg, Oct 4, 2019.

  1. rich-gg

    rich-gg

    Joined:
    Mar 26, 2018
    Posts:
    10
    Hi there

    I'm in the Android environement in Unity, create a custom procedural skybox material and apply it in the Lighting panel.
    -> it works just fine in the Game preview
    -> when I make a build to launch on my Android device, during build, the skybox material reverts to the default one (in the game window)
    => no custom skybox procedural material in my app on the device
    - once the build is done, the game windows re-reverts to my custom material

    How can I solve this ?

    ps: I use this way to do it
     
    Last edited: Oct 7, 2019
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,443
    some ideas to check
    - are you building that scene? (in build settings, is there some other scene in that list)
    - any errors/warnings in the device log https://answers.unity.com/questions/492681/how-to-use-adb-logcat.html
    - are you loading scenes additively? (apparently then you need to set that skybox scene as main scene for it to become active)
    - maybe some screenshots/video of your issue or editor setup could help
     
  3. rich-gg

    rich-gg

    Joined:
    Mar 26, 2018
    Posts:
    10
  4. rich-gg

    rich-gg

    Joined:
    Mar 26, 2018
    Posts:
    10
    THANK YOU, GRACIAS, MERCI, OBRIGADO, GRAZIE, DANK JE, EFCHARISTO !!!!

    you @mgear, you freed me of a jail I was stuck in for one month !!!!


    That was it, having played with various scenes during dev, I had a scene in "scenes in build", in the build interface, that was messing the whole thing

    => make sure you have only 1 scene here and that it is the good one

    ps:
    I'd like to get the answer to that question though
    How do you "set that skybox scene as main scene" ?
     
  5. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,443