Is it possible to have multiple settings for the same project? (mobile, Web, etc)

Discussion in 'Unity Support' started by dudeabot, Apr 28, 2012.

  1. dudeabot

    dudeabot

    Member

    Joined:
    Jun 26, 2010
    Messages:
    14
    Just as the title says, i wanted to know if theres is a automatic way of -when building- unity could switch the material for simpler ones (or switch the shader to simpler techniques) according to the project type. for example. if I have a Web project, there could be some fallback material when i publish to mobile. Another cool option would to have some toggle to switch between texture sizes according to building as well. for example, for WEB i could leave the texture as it is, but for mobile i could ask it to crop 1/2 size.

    Or do I have to start a new project and copy everythnig and tweak materials there?

    Thanks
  2. Dreamora

    Dreamora

    Member

    Joined:
    Apr 5, 2008
    Messages:
    26,586
    No need to do that.
    All you need to do is write your shader using shaderlab LOD tags and then use the global shader lod level to limit it depending on the platform and hardware (cause just cause its web or just cause its mobile does not mean much, there are users with desktop crapier than ipad 3, significantly crapier)

    And the texture size is already present, see quality settings dialog
  3. dudeabot

    dudeabot

    Member

    Joined:
    Jun 26, 2010
    Messages:
    14
    thanks :) i found one thing though, it shows nothing on inspector if i select a DDS texture, but if select a TGA texture it shows the options you said.

    strange =/
  4. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Messages:
    25,573
    A DDS texture is already in a native format, so there's nothing to do.

    --Eric