// Unity C# reference source// Copyright (c) Unity Technologies. For terms of use, see// https://unity3d.com/legal/licenses/Unity_Reference_Only_License// this is just one big file to get all deprecated api together// as there are no upsides to keep them around in scattered files//// about using: UNITY_IPHONE_API || UNITY_ANDROID_API// i have no idea why we do android api here but i guess lets keep it to be on the safe sideusing System;using System.Collections;namespace UnityEngine{//// iPhoneSettings//[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("iPhoneScreenOrientation enumeration is deprecated. Please use ScreenOrientation instead (UnityUpgradable) -> ScreenOrientation", true)]public enum iPhoneScreenOrientation{Unknown,Portrait,PortraitUpsideDown,LandscapeLeft,LandscapeRight,AutoRotation,Landscape}[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("iPhoneNetworkReachability enumeration is deprecated. Please use NetworkReachability instead (UnityUpgradable) -> NetworkReachability", true)]public enum iPhoneNetworkReachability{NotReachable,ReachableViaCarrierDataNetwork,[Obsolete] ReachableViaWiFiNetwork}[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("iPhoneGeneration enumeration is deprecated. Please use iOS.DeviceGeneration instead (UnityUpgradable) -> UnityEngine.iOS.DeviceGeneration", true)]public enum iPhoneGeneration{Unknown,iPhone,iPhone3G,iPhone3GS,iPodTouch1Gen,iPodTouch2Gen,iPodTouch3Gen,iPad1Gen,iPhone4,iPodTouch4Gen,iPad2Gen,iPhone4S,iPad3Gen,iPhone5,iPodTouch5Gen,iPadMini1Gen,iPad4Gen,iPhone5C,iPhone5S,iPhoneUnknown,iPadUnknown,iPodTouchUnknown}[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]partial class iPhoneSettings{[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("screenOrientation property is deprecated. Please use Screen.orientation instead (UnityUpgradable) -> Screen.orientation", true)]public static iPhoneScreenOrientation screenOrientation { get { return default(iPhoneScreenOrientation); } }[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("uniqueIdentifier property is deprecated. Please use SystemInfo.deviceUniqueIdentifier instead (UnityUpgradable) -> SystemInfo.deviceUniqueIdentifier", true)]public static string uniqueIdentifier { get { return string.Empty; } }[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("name property is deprecated (UnityUpgradable). Please use SystemInfo.deviceName instead (UnityUpgradable) -> SystemInfo.deviceName", true)]public static string name { get { return string.Empty; } }[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("model property is deprecated. Please use SystemInfo.deviceModel instead (UnityUpgradable) -> SystemInfo.deviceModel", true)]public static string model { get { return string.Empty; } }[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("systemName property is deprecated. Please use SystemInfo.operatingSystem instead (UnityUpgradable) -> SystemInfo.operatingSystem", true)]public static string systemName { get { return string.Empty; } }[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("internetReachability property is deprecated. Please use Application.internetReachability instead (UnityUpgradable) -> Application.internetReachability", true)]public static iPhoneNetworkReachability internetReachability { get { return default(iPhoneNetworkReachability); } }[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("systemVersion property is deprecated. Please use iOS.Device.systemVersion instead (UnityUpgradable) -> UnityEngine.iOS.Device.systemVersion", true)]public static string systemVersion { get { return string.Empty; } }[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("generation property is deprecated. Please use iOS.Device.generation instead (UnityUpgradable) -> UnityEngine.iOS.Device.generation", true)]public static iPhoneGeneration generation { get { return default(iPhoneGeneration); } }}public partial class iPhoneSettings{[Obsolete("verticalOrientation property is deprecated. Please use Screen.orientation == ScreenOrientation.Portrait instead.", false)]public static bool verticalOrientation { get { return false; } }[Obsolete("screenCanDarken property is deprecated. Please use (Screen.sleepTimeout != SleepTimeout.NeverSleep) instead.", false)]public static bool screenCanDarken { get { return false; } }[Obsolete("StartLocationServiceUpdates method is deprecated. Please use Input.location.Start instead.", true)]public static void StartLocationServiceUpdates(float desiredAccuracyInMeters, float updateDistanceInMeters){}[Obsolete("StartLocationServiceUpdates method is deprecated. Please use Input.location.Start instead.", true)]public static void StartLocationServiceUpdates(float desiredAccuracyInMeters){}[Obsolete("StartLocationServiceUpdates method is deprecated. Please use Input.location.Start instead.", true)]public static void StartLocationServiceUpdates(){}[Obsolete("StopLocationServiceUpdates method is deprecated. Please use Input.location.Stop instead.", true)]public static void StopLocationServiceUpdates(){}[Obsolete("locationServiceEnabledByUser property is deprecated. Please use Input.location.isEnabledByUser instead.", true)]public static bool locationServiceEnabledByUser { get { return false; } }}//// iPhoneTouch//[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("iPhoneTouchPhase enumeration is deprecated. Please use TouchPhase instead (UnityUpgradable) -> TouchPhase", true)]public enum iPhoneTouchPhase{Began,Moved,Stationary,Ended,Canceled}[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("iPhoneTouch struct is deprecated. Please use Touch instead (UnityUpgradable) -> Touch", true)]public struct iPhoneTouch{[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("positionDelta property is deprecated. Please use Touch.deltaPosition instead (UnityUpgradable) -> Touch.deltaPosition", true)]public Vector2 positionDelta { get { return new Vector2(); } }[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("timeDelta property is deprecated. Please use Touch.deltaTime instead (UnityUpgradable) -> Touch.deltaTime", true)]public float timeDelta { get { return default(int); } }public int fingerId { get { return default(int); } }public Vector2 position { get { return default(Vector2); } }public Vector2 deltaPosition { get { return default(Vector2); } }public float deltaTime { get { return default(float); } }public int tapCount { get { return default(int); } }public iPhoneTouchPhase phase { get { return default(iPhoneTouchPhase); } }}//// iPhoneUtils//[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("iPhoneMovieControlMode enumeration is deprecated. Please use FullScreenMovieControlMode instead (UnityUpgradable) -> FullScreenMovieControlMode", true)]public enum iPhoneMovieControlMode{Full,Minimal,[Obsolete] CancelOnTouch,Hidden,[Obsolete] VolumeOnly}[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("iPhoneMovieScalingMode enumeration is deprecated. Please use FullScreenMovieScalingMode instead (UnityUpgradable) -> FullScreenMovieScalingMode", true)]public enum iPhoneMovieScalingMode{None,AspectFit,AspectFill,Fill}[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]public class iPhoneUtils{// we want to avoid obsolete warnings:// if method is not marked as obsolete and uses obsolete types we get warning// so prototypes for c-side calls will use ints and we manually create default-params overloads[Obsolete("PlayMovie method is deprecated. Please use Handheld.PlayFullScreenMovie instead (UnityUpgradable) -> [mscorlib] System.Boolean Handheld.PlayFullScreenMovie(*)")]public static void PlayMovie(string path, Color bgColor, iPhoneMovieControlMode controlMode, iPhoneMovieScalingMode scalingMode) {}[Obsolete("PlayMovie method is deprecated. Please use Handheld.PlayFullScreenMovie instead (UnityUpgradable) -> [mscorlib] System.Boolean Handheld.PlayFullScreenMovie(*)")]public static void PlayMovie(string path, Color bgColor, iPhoneMovieControlMode controlMode) {}[Obsolete("PlayMovie method is deprecated. Please use Handheld.PlayFullScreenMovie instead (UnityUpgradable) -> [mscorlib] System.Boolean Handheld.PlayFullScreenMovie(*)")]public static void PlayMovie(string path, Color bgColor) {}[Obsolete("PlayMovieURL method is deprecated. Please use Handheld.PlayFullScreenMovie instead (UnityUpgradable) -> [mscorlib] System.Boolean Handheld.PlayFullScreenMovie(*)")]public static void PlayMovieURL(string url, Color bgColor, iPhoneMovieControlMode controlMode, iPhoneMovieScalingMode scalingMode) {}[Obsolete("PlayMovieURL method is deprecated. Please use Handheld.PlayFullScreenMovie instead (UnityUpgradable) -> [mscorlib] System.Boolean Handheld.PlayFullScreenMovie(*)")]public static void PlayMovieURL(string url, Color bgColor, iPhoneMovieControlMode controlMode) {}[Obsolete("PlayMovieURL method is deprecated. Please use Handheld.PlayFullScreenMovie instead (UnityUpgradable) -> [mscorlib] System.Boolean Handheld.PlayFullScreenMovie(*)")]public static void PlayMovieURL(string url, Color bgColor) {}[Obsolete("Vibrate method is deprecated. Please use Handheld.Vibrate instead (UnityUpgradable) -> Handheld.Vibrate()")]public static void Vibrate() {}[Obsolete("isApplicationGenuine property is deprecated. Please use Application.genuine instead (UnityUpgradable) -> Application.genuine")]public static bool isApplicationGenuine { get { return false; } }[Obsolete("isApplicationGenuineAvailable property is deprecated. Please use Application.genuineCheckAvailable instead (UnityUpgradable) -> Application.genuineCheckAvailable")]public static bool isApplicationGenuineAvailable { get { return false; } }}//// iPhoneKeyboard//[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("iPhoneKeyboardType enumeration is deprecated. Please use TouchScreenKeyboardType instead (UnityUpgradable) -> TouchScreenKeyboardType", true)]public enum iPhoneKeyboardType{Default,ASCIICapable,NumbersAndPunctuation,URL,NumberPad,PhonePad,NamePhonePad,EmailAddress}[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("iPhoneKeyboard class is deprecated. Please use TouchScreenKeyboard instead (UnityUpgradable) -> TouchScreenKeyboard", true)]public class iPhoneKeyboard{public string text { get { return string.Empty; } set {} }public static bool hideInput { get { return false; } set {} }public bool active { get { return false; } set {} }public bool done { get { return false; } }public static Rect area { get { return default(Rect); } }public static bool visible { get { return false; } }}//// iPhoneInput//[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("iPhoneAccelerationEvent struct is deprecated. Please use AccelerationEvent instead (UnityUpgradable) -> AccelerationEvent", true)]public struct iPhoneAccelerationEvent{[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("timeDelta property is deprecated. Please use AccelerationEvent.deltaTime instead (UnityUpgradable) -> AccelerationEvent.deltaTime", true)]public float timeDelta { get { return 0; } }public Vector3 acceleration { get { return default(Vector3); } }public float deltaTime { get { return -1.0f; } }}[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("iPhoneOrientation enumeration is deprecated. Please use DeviceOrientation instead (UnityUpgradable) -> DeviceOrientation", true)]public enum iPhoneOrientation{Unknown,Portrait,PortraitUpsideDown,LandscapeLeft,LandscapeRight,FaceUp,FaceDown}// The iPhoneInput class acts as the interface into the iPhone's unique Input systems.[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("iPhoneInput class is deprecated. Please use Input instead (UnityUpgradable) -> Input", true)]public class iPhoneInput{[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("orientation property is deprecated. Please use Input.deviceOrientation instead (UnityUpgradable) -> Input.deviceOrientation", true)]public static iPhoneOrientation orientation { get { return default(iPhoneOrientation); } }// Folowing members are not strictly required to update references from iPhoneInput -> Input, but// any method that takes an argument like iPhoneInput.touchCount will fail resolution if the member (touchCount) is not present// in the "old" version of the type and the update may fail.public static iPhoneAccelerationEvent[] accelerationEvents { get { return null; } }public static iPhoneTouch[] touches { get { return null; } }public static int touchCount { get { return 0; } }public static bool multiTouchEnabled { get { return false; } set {} }public static int accelerationEventCount { get { return 0; } }public static Vector3 acceleration { get { return default(Vector3); } }public static iPhoneTouch GetTouch(int index) { return default(iPhoneTouch); }public static iPhoneAccelerationEvent GetAccelerationEvent(int index) { return default(iPhoneAccelerationEvent); }}//// iPhone//[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("iPhone class is deprecated. Please use iOS.Device instead (UnityUpgradable) -> UnityEngine.iOS.Device", true)]public sealed class iPhone{public static iPhoneGeneration generation { get { return default(iPhoneGeneration); } }public static string vendorIdentifier { get { return default(string); } }public static string advertisingIdentifier { get { return default(string); } }public static bool advertisingTrackingEnabled { get { return default(bool); } }public static void SetNoBackupFlag(string path) {}public static void ResetNoBackupFlag(string path) {}}[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("iOSActivityIndicatorStyle enumeration is deprecated. Please use iOS.ActivityIndicatorStyle instead (UnityUpgradable) -> UnityEngine.iOS.ActivityIndicatorStyle", true)]public enum iOSActivityIndicatorStyle{DontShow,WhiteLarge,White,Gray}//// LocalNotification/RemoteNotification/NotificationServices//[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("CalendarIdentifier is deprecated. Please use iOS.CalendarIdentifier instead (UnityUpgradable) -> UnityEngine.iOS.CalendarIdentifier", true)]public enum CalendarIdentifier{GregorianCalendar,BuddhistCalendar,ChineseCalendar,HebrewCalendar,IslamicCalendar,IslamicCivilCalendar,JapaneseCalendar,RepublicOfChinaCalendar,PersianCalendar,IndianCalendar,ISO8601Calendar}[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("CalendarUnit is deprecated. Please use iOS.CalendarUnit instead (UnityUpgradable) -> UnityEngine.iOS.CalendarUnit", true)]public enum CalendarUnit{Era,Year,Month,Day,Hour,Minute,Second,Week,Weekday,WeekdayOrdinal,Quarter}[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("LocalNotification is deprecated. Please use iOS.LocalNotification instead (UnityUpgradable) -> UnityEngine.iOS.LocalNotification", true)]public sealed class LocalNotification{public DateTime fireDate { get { return default(DateTime); } set {} }public string timeZone { get { return default(string); } set {} }public CalendarUnit repeatInterval { get { return default(CalendarUnit); } set {} }public CalendarIdentifier repeatCalendar { get { return default(CalendarIdentifier); } set {} }public string alertBody { get { return default(string); } set {} }public string alertAction { get { return default(string); } set {} }public bool hasAction { get { return default(bool); } set {} }public string alertLaunchImage { get { return default(string); } set {} }public int applicationIconBadgeNumber { get { return default(int); } set {} }public string soundName { get { return default(string); } set {} }public static string defaultSoundName { get { return default(string); } }public IDictionary userInfo { get { return default(IDictionary); } set {} }public LocalNotification() {}}[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("RemoteNotification is deprecated. Please use iOS.RemoteNotification instead (UnityUpgradable) -> UnityEngine.iOS.RemoteNotification", true)]public sealed class RemoteNotification{public string alertBody { get { return default(string); } }public bool hasAction { get { return default(bool); } }public int applicationIconBadgeNumber { get { return default(int); } }public string soundName { get { return default(string); } }public IDictionary userInfo { get { return default(IDictionary); } }}[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("RemoteNotificationType is deprecated. Please use iOS.NotificationType instead (UnityUpgradable) -> UnityEngine.iOS.NotificationType", true)]public enum RemoteNotificationType{None,Badge,Sound,Alert}[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("NotificationServices is deprecated. Please use iOS.NotificationServices instead (UnityUpgradable) -> UnityEngine.iOS.NotificationServices", true)]public sealed class NotificationServices{public NotificationServices(){}[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("RegisterForRemoteNotificationTypes is deprecated. Please use RegisterForNotifications instead (UnityUpgradable) -> UnityEngine.iOS.NotificationServices.RegisterForNotifications(*)", true)]public static void RegisterForRemoteNotificationTypes(RemoteNotificationType notificationTypes) {}}//// iAD//[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("ADBannerView class is obsolete, Apple iAD service discontinued", true)]public sealed class ADBannerView{public enum Layout{Top,Bottom,TopLeft = 0,TopRight = 4,TopCenter = 8,BottomLeft = 1,BottomRight = 5,BottomCenter = 9,CenterLeft = 2,CenterRight = 6,Center = 10,Manual = -1}public enum Type{Banner,MediumRect}public delegate void BannerWasClickedDelegate();public delegate void BannerWasLoadedDelegate();public static event ADBannerView.BannerWasClickedDelegate onBannerWasClicked{add {}remove {}}public static event ADBannerView.BannerWasLoadedDelegate onBannerWasLoaded{add {}remove {}}public bool loaded { get { return false; } }public bool visible { get { return false; } set {} }public ADBannerView.Layout layout { get { return default(ADBannerView.Layout); } set {} }public Vector2 position { get { return default(Vector2); } set {} }public Vector2 size { get { return default(Vector2); } }public ADBannerView(ADBannerView.Type type, ADBannerView.Layout layout) {}public static bool IsAvailable(ADBannerView.Type type) { return false; }}[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("ADInterstitialAd class is obsolete, Apple iAD service discontinued", true)]public sealed class ADInterstitialAd{public delegate void InterstitialWasLoadedDelegate();public static event ADInterstitialAd.InterstitialWasLoadedDelegate onInterstitialWasLoaded{add {}remove {}}public static bool isAvailable { get { return false; } }public bool loaded { get { return false; } }public ADInterstitialAd(bool autoReload) {}public ADInterstitialAd() {}~ADInterstitialAd() {}public void Show() {}public void ReloadAd() {}}}namespace UnityEngine.iOS{//// iAD//[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("iOS.ADBannerView class is obsolete, Apple iAD service discontinued", true)]public sealed partial class ADBannerView{public enumLayout{// bannerTop = 0,Bottom = 1,// rectTopLeft = 0,TopRight = 4,TopCenter = 8,BottomLeft = 1,BottomRight = 5,BottomCenter = 9,CenterLeft = 2,CenterRight = 6,Center = 10,Manual = -1};public enumType{Banner = 0,MediumRect = 1};public static bool IsAvailable(Type type) { return false; }public ADBannerView(Type type, Layout layout) {}public bool loaded { get { return false; } }public bool visible { get { return false; } set {} }public Layout layout { get { return default(Layout); } set {} }public Vector2 position { get { return default(Vector2); } set {} }public Vector2 size { get { return default(Vector2); } }public delegate void BannerWasClickedDelegate();public static event BannerWasClickedDelegate onBannerWasClicked{add {}remove {}}public delegate void BannerWasLoadedDelegate();public static event BannerWasLoadedDelegate onBannerWasLoaded{add {}remove {}}public delegate void BannerFailedToLoadDelegate();public static event BannerFailedToLoadDelegate onBannerFailedToLoad{add {}remove {}}}[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)][Obsolete("iOS.ADInterstitialAd class is obsolete, Apple iAD service discontinued", true)]public sealed partial class ADInterstitialAd{public static bool isAvailable { get { return false; } }public ADInterstitialAd(bool autoReload) {}public ADInterstitialAd() {}public void Show() {}public void ReloadAd() {}public bool loaded { get { return false; } }public delegate void InterstitialWasLoadedDelegate();public static event InterstitialWasLoadedDelegate onInterstitialWasLoaded{add {}remove {}}public delegate void InterstitialWasViewedDelegate();public static event InterstitialWasViewedDelegate onInterstitialWasViewed{add {}remove {}}}}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。