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) |
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"); | |
} | |
} |
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 = ""; |
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 設定 |
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 | |
{ |
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; |
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 FileIconTest : EditorWindow { | |
Vector2 scrollPosition; | |
[MenuItem ("Window/File Icon")] |
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 FileIconTest : EditorWindow { | |
Vector2 scrollPosition; | |
[MenuItem ("Window/File Icon")] |
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 FileIconTest : EditorWindow { | |
Vector2 scrollPosition; | |
[MenuItem ("Window/File Icon")] |