Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Programmatically degrade a scene to better support multiple platforms

Discussion in 'Scripting' started by shamunity, Oct 9, 2015.

  1. shamunity

    shamunity

    Joined:
    Sep 18, 2015
    Posts:
    22
    Hi,

    Is it possible (or recommended!) to programmatically degrade a scene , for example:

    Code (CSharp):
    1. if (platform == Ios)
    2.     - use shader xyx
    3.     - change main camera culling
    4.     - etc

    Thank you!
     
  2. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    Seemed to work for these guys.

     
  3. shamunity

    shamunity

    Joined:
    Sep 18, 2015
    Posts:
    22
    FYI to those interested, the TL;DW is that yes, that's exactly how you'd do it.