This file contains hidden or 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
public class TestGistClass{ | |
public int num = 0; | |
private string _text = "hello"; | |
public TestGistClass(int argNum,string argText){ | |
num = argNum; | |
_text = argText; | |
} | |
This file contains hidden or 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
<?php | |
//======スプレッドシートの取得 ここから====== | |
require './hoge/Ghostsheet.php'; | |
$gs = new Ghostsheet(); | |
$gs->set('cache', './hoge'); | |
$mySpreadsheetId = 'hogehogehoge'; //スプレッドシートのIDを設定 |
This file contains hidden or 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
// Editor Scriptで書くこと。 | |
Texture2D[] currentIcons; //現在設定されているアイコンのテクスチャー | |
Texture2D[] newIcon; //新しく設定するアイコンのテクスチャー | |
int[] iconSizes; | |
// 現在のアイコンを取得。 | |
currentIcons = PlayerSettings.GetIconsForTargetGroup(BuildTargetGroup.Android); |
This file contains hidden or 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
void Awake () { | |
// UnityPlayerクラスを取得 | |
AndroidJavaClass jc = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); | |
// 現在のActivityを取得 | |
AndroidJavaObject activity = jc.GetStatic<AndroidJavaObject>("currentActivity"); | |
// Contextを取得 | |
AndroidJavaObject context = activity.Call<AndroidJavaObject>("getApplicationContext"); |
This file contains hidden or 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
Mobile Splash Screen = 320 * 480 | |
iPhone3.5"/Retina = 640 * 960 | |
iPhone4"/Retina = 640 * 1136 | |
iPad Portrait = 768 * 1024 | |
High Res. iPad Portrait = 1536 * 2048 |
This file contains hidden or 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 UnityEngine; | |
using System; | |
using System.Collections; | |
public class LogCallbackSample : MonoBehaviour { | |
public string condition = ""; | |
public string stackTrace = ""; | |
public string systemStackTrace = ""; | |
public LogType type; |
This file contains hidden or 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
void Awake () | |
{ | |
Application.RegisterLogCallback(LogCallBackHandler); | |
} | |
void LogCallBackHandler(string condition, string stackTrace, LogType type) | |
{ | |
// condition : | |
// Debug.Log, Debug.LogWarning, Debug.LogError, Debug.LoeException Argument. |
This file contains hidden or 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
void Awake () | |
{ | |
Application.RegisterLogCallback(LogCallBackHandler); | |
} | |
void LogCallBackHandler(string condition, string stackTrace, LogType type) | |
{ | |
// 取得したログの情報を処理する | |
} |
This file contains hidden or 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
void LogCallBackHandler(string condition, string stackTrace, LogType type) | |
{ | |
// System.Diagnostics.StackTraceを使う | |
System.Diagnostics.StackTrace systemStackTrace = new System.Diagnostics.StackTrace(true); | |
string systemStackTraceStr = systemStackTrace.ToString(); | |
} |
This file contains hidden or 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
// 共通化のクラス | |
public class MyButton : MonoBehaviour | |
{ | |
void Press (); | |
} | |
// MyButtonを実装したクラス | |
public class StartButton : MyButton | |
{ | |
public void Press () |
OlderNewer