Skip to content

Instantly share code, notes, and snippets.

@prime31
Created December 13, 2012 01:35
Show Gist options
  • Save prime31/4273305 to your computer and use it in GitHub Desktop.
Save prime31/4273305 to your computer and use it in GitHub Desktop.
Example of using the new prime31PostBuildCompletedEvent. This event is fired when the prime[31] post build system has completed modifying the Xcode project.
using UnityEngine;
using UnityEditor;
using System.Collections;
public class Test : MonoBehaviour
{
[MenuItem( "MyMenu/Hook up Post Build Event" )]
static void blah()
{
Debug.Log( "adding post build event listener" );
Prime31Editor.MenuItem.prime31PostBuildCompletedEvent += prime31PostBuildCompletedEvent;
}
static void prime31PostBuildCompletedEvent( BuildTarget target, string pathToBuiltProject )
{
Debug.Log( "prime[31] post build finished messing with the Xcode project" );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment