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

PluginImporter: set WSA placeholder, what key to use?

Discussion in 'Windows' started by Acrilige, Dec 8, 2015.

  1. Acrilige

    Acrilige

    Joined:
    May 6, 2013
    Posts:
    50
    Hi,

    If I want to set placeholder from editor script, I could do it like this:

    Code (CSharp):
    1. PluginImporter p = PluginImporter.GetAtPath ("Assets/Plugins/Windows/WindowsPlugin.dll") as PluginImporter;
    2. p.SetPlatformData (BuildTarget.WSAPlayer, "Placeholder", "Assets/Plugins/Placeholder/WindowsPlugin.dll");
    3. p.SaveAndReimport();
    Except that "Placeholder" key is not right (it can be checked by setting placeholder directly and then trying to print it via GetPlatformData). So what key to use? Didn't find it anywhere in the docs.
     
    Last edited: Dec 8, 2015
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,507
    It's "PlaceholderPath".
     
  3. Acrilige

    Acrilige

    Joined:
    May 6, 2013
    Posts:
    50
    Great thanx! Hope it will be added to documentation, would be useful
     
  4. Acrilige

    Acrilige

    Joined:
    May 6, 2013
    Posts:
    50
    Which one is for "Don't process"?
     
  5. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,507
    "DontProcess".