Created
December 13, 2012 01:35
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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