Skip to content

Instantly share code, notes, and snippets.

@masa795
masa795 / UnityTextures.cs
Created June 17, 2013 14:12
Unityが持っているアイコンを表示する。 Unityのバージョンによってはパスが使えなくなるかもしれないので使用時は注意。
using System;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
//Unity 4.1.5
public class UnityTextures : EditorWindow
{
@masa795
masa795 / AppWebSocket.cs
Created March 15, 2014 10:36
UnityでWebSocket通信
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using WebSocketSharp;
using System;
public class AppWebSocket : MonoBehaviour {
@masa795
masa795 / DefauldFolderWindow.cs
Created May 13, 2013 14:50
Unityで使用しているフォルダとかのパス一覧Window
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
using System;
using UnityEditorInternal;
using System.IO;
public class DefauldFolderWindow : EditorWindow {
@masa795
masa795 / TestClass.php
Created April 3, 2018 15:23
PhpStorm で自由な位置でコードを折りたたむ
<?php
class TestClass
{
// <editor-fold desc="旧コード">
public function main(){
$this->throwException();
}
@masa795
masa795 / gist:03724f39fad81f56d361539aced0105f
Created March 25, 2018 08:39
PhpStormの日本語化 戻す
# 日本語化
# -Xverify:none
# -javaagent:/Users/[ユーザー名]/Library/Preferences/PhpStorm2017.3/jp.sourceforge.mergedoc.pleiades/pleiades.jar
@masa795
masa795 / PhpStorm_jp
Last active March 25, 2018 08:33
PhpStormの日本語化
# 日本語化
-Xverify:none
-javaagent:/Users/[ユーザー名]/Library/Preferences/PhpStorm2017.3/jp.sourceforge.mergedoc.pleiades/pleiades.jar
@masa795
masa795 / WindowNotification.cs
Created March 9, 2014 10:06
EditorWindow上に通知を表示する
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
public class WindowNotification : EditorWindow {
// Add menu item to the Window menu
[MenuItem ("Window/Window Notification")]
static void Init () {
@masa795
masa795 / DragReSizeFiled.cs
Created December 7, 2013 14:51
GUIの横幅をマウスのドラッグで変更する
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
public class DragReSizeFiled : EditorWindow {
// Add menu item to the Window menu
[MenuItem("Window/DragReSizeFiled")]
static void Init () {
@masa795
masa795 / ActiveScriptCompilationDefines.cs
Created November 2, 2013 12:55
ディレクティブ一覧を取得する
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
public class ActiveScriptCompilationDefines : EditorWindow {
[MenuItem ("Window/Active Script Compilation Defines")]
static void Init () {
@masa795
masa795 / FileIconTest2.cs
Created October 28, 2013 15:44
ボタンなどの画像サイズを変える
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
public class FileIconTest2 : EditorWindow
{
Vector2 scrollPosition;
[MenuItem("Window/File Icon2")]