Skip to content

Instantly share code, notes, and snippets.

@shinriyo
Last active December 12, 2015 07:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shinriyo/4738242 to your computer and use it in GitHub Desktop.
Save shinriyo/4738242 to your computer and use it in GitHub Desktop.
iOSのインジゲーターができない Unity側
using UnityEngine;
using System.Collections;
using System.Runtime.InteropServices;
public class UIActivityIndicatorView
{
#if UNITY_IPHONE
[DllImport("__Internal")]
private static extern void startSpinner();
#endif
public static void IPhoneStartSpinner()
{
#if UNITY_IPHONE
startSpinner();
#endif
}
#if UNITY_IPHONE
[DllImport("__Internal")]
private static extern void stopSpinner();
#endif
public static void IPhoneStopSpinner()
{
#if UNITY_IPHONE
stopSpinner();
#endif
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment