Search Unity

Question Parameter based on selected template \ build

Discussion in 'Editor & General Support' started by doronhn, Oct 7, 2020.

  1. doronhn

    doronhn

    Joined:
    Jul 27, 2018
    Posts:
    27
    Hey,

    i want to export my project to WEBGL, i am going to publish my game in different sites to check what site give me better traffic.

    for every site i want to active different function in my script, for example:

    Code (CSharp):
    1. if ([parameter] == SiteA)
    2. {
    3. }
    4. else if (parameter == siteB)
    5. {
    6. }
    7. else
    i have different template for each site, so if its possible to set a template based parameter it will be great.
    is it possible?