Skip to content

Instantly share code, notes, and snippets.

@masa795
masa795 / UnityTextures.cs
Created Jun 17, 2013
Unityが持っているアイコンを表示する。 Unityのバージョンによってはパスが使えなくなるかもしれないので使用時は注意。
View UnityTextures.cs
using System;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
//Unity 4.1.5
public class UnityTextures : EditorWindow
{
@masa795
masa795 / AppWebSocket.cs
Created Mar 15, 2014
UnityでWebSocket通信
View AppWebSocket.cs
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
Unityで使用しているフォルダとかのパス一覧Window
View DefauldFolderWindow.cs
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 Apr 3, 2018
PhpStorm で自由な位置でコードを折りたたむ
View TestClass.php
<?php
class TestClass
{
// <editor-fold desc="旧コード">
public function main(){
$this->throwException();
}
View gist:03724f39fad81f56d361539aced0105f
# 日本語化
# -Xverify:none
# -javaagent:/Users/[ユーザー名]/Library/Preferences/PhpStorm2017.3/jp.sourceforge.mergedoc.pleiades/pleiades.jar
@masa795
masa795 / PhpStorm_jp
Last active Mar 25, 2018
PhpStormの日本語化
View PhpStorm_jp
# 日本語化
-Xverify:none
-javaagent:/Users/[ユーザー名]/Library/Preferences/PhpStorm2017.3/jp.sourceforge.mergedoc.pleiades/pleiades.jar
@masa795
masa795 / WindowNotification.cs
Created Mar 9, 2014
EditorWindow上に通知を表示する
View WindowNotification.cs
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 Dec 7, 2013
GUIの横幅をマウスのドラッグで変更する
View DragReSizeFiled.cs
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 Nov 2, 2013
ディレクティブ一覧を取得する
View ActiveScriptCompilationDefines.cs
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 Oct 28, 2013
ボタンなどの画像サイズを変える
View FileIconTest2.cs
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
public class FileIconTest2 : EditorWindow
{
Vector2 scrollPosition;
[MenuItem("Window/File Icon2")]