Skip to content

Instantly share code, notes, and snippets.

View murapong's full-sized avatar
🎯
Focusing

Masahiro MURAKAMI murapong

🎯
Focusing
View GitHub Profile
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)
{
@murapong
murapong / AdMobDependencies.cs
Last active January 3, 2017 07:47
AdMobを入れたUnityプロジェクトがUnity Cloud Build上でビルドエラーになるときの対処法 ref: http://qiita.com/murapong/items/98977331e6db4bd6a03f
#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>() {
@murapong
murapong / 81-C# Script-NewBehaviourScript.cs.txt
Last active February 4, 2023 04:50
UnityのC#テンプレート
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class #SCRIPTNAME# : MonoBehaviour
{
#region enum
#endregion
@murapong
murapong / unity-screenshot-texture2d.cs
Created January 30, 2016 16:12
UnityでスクリーンショットをTexture2D形式で取得する
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;
}