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; | |
public class TestWindow : EditorWindow { | |
// Serializableの物(public or SerializeField)がUndo対象. | |
[SerializeField] string testText; | |
// うぃんど~ひらくよ~ | |
[MenuItem("Window/TestWindow")] |
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; | |
public class TestButton : MonoBehaviour { | |
[SerializeField] string imageUrl; | |
UITexture texture; | |
void Awake() | |
{ | |
texture = GetComponent<UITexture>(); |
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
import vibe.core.core : sleep; | |
import vibe.core.log; | |
import vibe.http.fileserver : serveStaticFiles; | |
import vibe.http.router : URLRouter; | |
import vibe.http.server; | |
import vibe.http.websockets : WebSocket, handleWebSockets; | |
import core.time; | |
shared static this() |
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; | |
using System.Collections; | |
public class Model | |
{ | |
public Action<string> OnChange; | |
protected void Changed(string propertyName) | |
{ | |
if(OnChange != null) OnChange(propertyName); |
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; | |
[CustomEditor(typeof(CanvasRenderer))] | |
public class CanvasRendererMover : Editor | |
{ | |
static int hint = "WidgetHash".GetHashCode(); | |
void OnSceneGUI() | |
{ |
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
hogehoge |
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
$ -> | |
if not "WebSocket" in window | |
alert "WebSocket NOT supported by your Browser!" | |
return | |
#-----ここからライブラリでやる----- | |
METHOD_IDS = { | |
'chatStoC' : 100, | |
'chatCtoS' : 200 | |
} |
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
$ -> | |
if not "WebSocket" in window | |
alert "WebSocket NOT supported by your Browser!" | |
return | |
#-----ここからライブラリでやる----- | |
METHOD_IDS = { | |
'chatStoC' : 100, | |
'chatCtoS' : 200 | |
} |
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
Target=$(cd $(dirname $1) && pwd)/$(basename $1) | |
if [ $# == 0 ]; then | |
echo "Usage: OpenUnity [project path] [unity version]" | |
exit 0 | |
fi | |
if [ ! -e "${Target}/ProjectSettings/ProjectVersion.txt" ]; then | |
echo "${Target}/ProjectSettings/ProjectVersion.txt が見つかりません。" | |
exit 1 | |
fi |
OlderNewer