Skip to content

Instantly share code, notes, and snippets.

@gashtio
Created December 18, 2012 10:16
Show Gist options
  • Save gashtio/4326866 to your computer and use it in GitHub Desktop.
Save gashtio/4326866 to your computer and use it in GitHub Desktop.
Binding JavaScript automatically in Unity3D using Coherent UI
public class AutomaticBinding : MonoBehaviour {
[Coherent.UI.CoherentMethod("ApplyOptions", false)]
public void ApplyOptions(GameOptions options)
{
// Do something with options
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment