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
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | |
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=27C6C585F2A2204D93E825FAE7479170/@KeyIndexDefined">True</s:Boolean> | |
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=27C6C585F2A2204D93E825FAE7479170/Shortcut/@EntryValue">AssetDeleteResult</s:String> | |
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=27C6C585F2A2204D93E825FAE7479170/Text/@EntryValue"> static AssetDeleteResult OnWillDeleteAsset (string $assetPath$, RemoveAssetOptions $option$)
 | |
{
 | |
$END$
 | |
}</s:String> | |
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=27C6C585F2A2204D93E825FAE7479170/Reformat/@EntryValue">True</s:Boolean> | |
<s:Boolean x:Key="/Default/PatternsAndTemplate |
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 Uniduino; | |
public class Sample : MonoBehaviour | |
{ | |
//3.3V | |
private Arduino arduino; | |
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 Uniduino; | |
public class Sample : MonoBehaviour | |
{ | |
private Arduino arduino; | |
private int angle; | |
void Start () |
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.Generic; | |
public class CloneInspecotr : EditorWindow | |
{ | |
[MenuItem("Window/CloneInspecotr")] | |
static void Open () | |
{ | |
GetWindow<CloneInspecotr> (); |
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; | |
[CustomEditor(typeof(HogeScript))] | |
public class CompactWindow : Editor | |
{ | |
private Editor model; | |
public override void OnInspectorGUI () | |
{ | |
HogeScript h = (HogeScript)target; |
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
//参考: http://wiki.unity3d.com/index.php?title=Singleton | |
using UnityEngine; | |
public abstract class MonoSingleton<T> : MonoBehaviour where T : MonoSingleton<T> | |
{ | |
private static T instance = null; | |
public static T Instance { | |
get { | |
//Scene内にあったら取得 |
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.Reflection; | |
public class HogeSearchableEditorWindow : SearchableEditorWindow | |
{ | |
static SearchableEditorWindow window = null; | |
[MenuItem("Window/HogeSearchableEditorWindow #%p")] |
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 Asset | |
{ | |
public static void Save <T> (T asset) where T : ScriptableObject | |
{ | |
Directory.CreateDirectory (DeployGateUtility.settingsFolderPath); | |
string assetPath = DeployGateUtility.settingsFolderPath + typeof(T).Name + ".asset"; | |
T _asset = (T)AssetDatabase.LoadAssetAtPath (assetPath, typeof(T)); | |
if (_asset == null) | |
AssetDatabase.CreateAsset (asset, assetPath); | |
AssetDatabase.SaveAssets (); |
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
/// <summary> | |
/// Unity RichText Extensions. | |
/// http://docs.unity3d.com/Documentation/Manual/StyledText.html | |
/// </summary> | |
namespace UnityExtensions.Text | |
{ | |
public static class RichTextExtension | |
{ | |
public static string Large (this string text) | |
{ |
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; | |
[RequireComponent(typeof(Animator))] | |
[RequireComponent(typeof(CharacterController))] | |
public class RobotController : MonoBehaviour | |
{ | |
private Animator animator; | |
private CharacterController characterController; |