This file contains hidden or 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
| var s_obj = new SerializedObject(this); | |
| EditorGUI.BeginDisabledGroup(true); | |
| EditorGUILayout.PropertyField(s_obj.FindProperty("m_Script")); | |
| EditorGUI.EndDisabledGroup(); |
This file contains hidden or 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
| const port = 8888; | |
| const http = require("http"), url = require("url"), | |
| path = require("path"), fs = require("fs"); | |
| http.createServer(function(request, response) { | |
| const uri = url.parse(request.url).pathname, | |
| filename = path.join(process.cwd(), uri); |
This file contains hidden or 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 UNITY_EDITOR | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UnityEditor; | |
| using System.Linq; | |
| using System.Text.RegularExpressions; | |
| namespace Seiro.Utils |
This file contains hidden or 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.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| /// <summary> | |
| /// ひたすら対象を見る | |
| /// </summary> | |
| [RequireComponent(typeof(Rigidbody))] | |
| public class LookCamera : MonoBehaviour | |
| { |
This file contains hidden or 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
| /* | |
| RGB split shader | |
| Built-inシェーダのvert_imgなどはここを参照のこと。 | |
| http://wiki.unity3d.com/index.php/Shader_Code | |
| uvなどは頂点シェーダで計算したほうが軽くなりそう。 | |
| */ | |
| Shader "Custom/RGBSplit" { | |
| Properties { |
This file contains hidden or 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
| <script id="worker" type="text/js-worker"> | |
| onmessage = function(e) { | |
| console.log(e.data); | |
| }; | |
| </script> |
This file contains hidden or 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
| var MyModule = {}; | |
| MyModule.Webworkertest = pc.createScript('webworkertest'); | |
| MyModule.Webworkertest.prototype.initialize = function() { | |
| if(window.Worker) { | |
| var htmlAsset; | |
| htmlAsset = this.app.assets.find('test.worker.html'); | |
| var div = document.createElement('div'); | |
| div.style.display = "none"; |
This file contains hidden or 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.Linq; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| /// <summary> | |
| /// 調節用パラメータを表示 | |
| /// </summary> | |
| public class Indicator : MonoBehaviour { |
This file contains hidden or 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; | |
| /// <summary> | |
| /// 移動させる | |
| /// </summary> | |
| public class Move : MonoBehaviour, IParameterIndicator { | |
| [SerializeField] float speed; |
This file contains hidden or 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; | |
| /// <summary> | |
| /// 移動させる | |
| /// </summary> | |
| public class Move : MonoBehaviour { | |
| [SerializeField] float speed; |
NewerOlder