Search Unity

Pass value to OnPostProcessBuild() gets called

Discussion in 'Scripting' started by chrs1885, Oct 8, 2015.

  1. chrs1885

    chrs1885

    Joined:
    Jun 4, 2015
    Posts:
    4
    Hi,

    I'm developing a native plugin for iOS. The dev only has to add the plugin-gameobject to e.g. the main camera of the first scene. He can configure this gameobject by modifying its values in the inspector panel. When he builds the project,
    Code (CSharp):
    1. OnPostProcessBuild(BuildTarget target, string path)
    gets called, which changes the exported Xcode project. In this method I'd like to access the values of the inspector panel (plugin-gameobject).

    Is there a way to get this working?

    Thanks in advance