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 System.IO; | |
using UnityEditor; | |
using UnityEditor.Callbacks; | |
using UnityEditor.iOS.Xcode; | |
public class DisableBitCodeBuildProcessor | |
{ | |
[PostProcessBuild(0)] | |
public static void OnPostProcessBuild(BuildTarget buildTarget, string buildPath) | |
{ |
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
#elif UNITY_IOS | |
// Type iosResolver = Google.VersionHandler.FindClass( | |
// "Google.IOSResolver", "Google.IOSResolver"); | |
// if (iosResolver == null) { | |
// return; | |
// } | |
// Google.VersionHandler.InvokeStaticMethod( | |
// iosResolver, "AddPod", | |
// new object[] { "Google-Mobile-Ads-SDK" }, | |
// namedArgs: new Dictionary<string, object>() { |
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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class #SCRIPTNAME# : MonoBehaviour | |
{ | |
#region enum | |
#endregion |
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
Texture2D CaptureScreenshot() | |
{ | |
Texture2D texture = new Texture2D(Screen.width, Screen.height, TextureFormat.RGB24, true); | |
texture.ReadPixels(new Rect(0, 0, Screen.width, Screen.height), 0, 0, true); | |
texture.Apply(); | |
return texture; | |
} |