View ActiveScriptCompilationDefines.cs
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 UnityEngine; | |
using UnityEditor; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class ActiveScriptCompilationDefines : EditorWindow { | |
[MenuItem ("Window/Active Script Compilation Defines")] | |
static void Init () { |
View FileIconTest2.cs
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 UnityEngine; | |
using UnityEditor; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class FileIconTest2 : EditorWindow | |
{ | |
Vector2 scrollPosition; | |
[MenuItem("Window/File Icon2")] |
View GetIpAddress.cs
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
string targetSheet = "IP address取得"; | |
if (GUILayout.Button(targetSheet, GUI.skin.button, GUILayout.Width(150), GUILayout.Height(30))) | |
{ | |
// ホスト名を取得する | |
string hostname = Dns.GetHostName(); | |
Debug.Log("hostname=" + hostname); | |
// ホスト名からIPアドレスを取得する | |
IPAddress[] adrList = Dns.GetHostAddresses(hostname); | |
foreach (IPAddress address in adrList) |
View IconTest_002.cs
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 UnityEngine; | |
using UnityEditor; | |
public class IconTest_002 : EditorWindow { | |
[MenuItem("window icon/icon2")] | |
static void Init() | |
{ | |
EditorWindow.GetWindow<IconTest_002>(false, "Firefox"); | |
} | |
} |
View test.cc
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 UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class test : MonoBehaviour { | |
public float m_float = 0f; | |
public double m_double = 0d; | |
public string m_input = ""; | |
public string m_out = ""; |
View AddStress.cs
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 UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System; | |
using System.Threading; | |
public class AddStress : MonoBehaviour | |
{ | |
#region 設定 |
View InitOnLoad.cs
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 UnityEngine; | |
using UnityEditor; | |
namespace Nlib.Editor.Util | |
{ | |
[InitializeOnLoad] | |
public class InitOnLoad | |
{ |
View TrustAllCertificatePolicy.cs
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
public class TrustAllCertificatePolicy : System.Net.ICertificatePolicy | |
{ | |
public TrustAllCertificatePolicy() { } | |
public bool CheckValidationResult(System.Net.ServicePoint sp, | |
System.Security.Cryptography.X509Certificates.X509Certificate cert, | |
System.Net.WebRequest req, | |
int problem) | |
{ | |
return true; |
View UnityTextures.cs
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; | |
using System.Collections.Generic; | |
using UnityEditor; | |
using UnityEngine; | |
//Unity 4.1.5 | |
public class UnityTextures : EditorWindow | |
{ |