完成プロジェクトの置き場 https://github.com/makoto-unity/angry-chicken
このドキュメント https://gist.github.com/4586393/
ドキュメントはこちら http://docs-jp.unity3d.com/
| using UnityEngine; | |
| using UnityEditor; | |
| using UnityEngine.UI; | |
| using TMPro; | |
| using TMPro.EditorUtilities; | |
| public class UGuiTextToTextMeshPro : Editor | |
| { | |
| [MenuItem("GameObject/UI/Convert To Text Mesh Pro", false, 4000)] | |
| static void DoIt() |
| using UnityEngine; | |
| using UnityEditor; | |
| using System.Collections; | |
| using System.IO; | |
| public class BuildScript | |
| { | |
| const string kAssetBundlesOutputPath = "AssetBundles"; | |
| // アセットバンドル化するフォルダの設置場所 |
| using UnityEngine; | |
| using System.Collections.Generic; | |
| #if UNITY_EDITOR | |
| using UnityEditor; | |
| #endif | |
| public class ResourcePathAsPopupAttribute : PropertyAttribute | |
| { | |
| public string resourceType; |
| using UnityEngine.EventSystems; | |
| namespace UnityEngine.UI | |
| { | |
| [RequireComponent (typeof (Canvas))] | |
| [ExecuteInEditMode] | |
| [AddComponentMenu("Layout/Reference Resolution", 101)] | |
| public class ReferenceResolution : UIBehaviour | |
| { |
| using UnityEngine; | |
| using UnityEditor; | |
| [CustomEditor(typeof(Transform))] | |
| public class TransformEditorWrapper : Editor { | |
| Editor transformEditor; | |
| void OnEnable() { | |
| Transform transform = target as Transform; | |
| System.Type t = typeof(UnityEditor.EditorApplication).Assembly.GetType("UnityEditor.TransformInspector"); |
| using UnityEngine; | |
| using System.Collections; | |
| public class TimeUtils : MonoBehaviour | |
| { | |
| //TimeScaleに関わらず、指定の秒数まつ | |
| public static IEnumerator WaitForSecondsIgnoreTimeScale(float time) | |
| { | |
| float targetTime = Time.realtimeSinceStartup + time; | |
| while(Time.realtimeSinceStartup < targetTime) |
完成プロジェクトの置き場 https://github.com/makoto-unity/angry-chicken
このドキュメント https://gist.github.com/4586393/
ドキュメントはこちら http://docs-jp.unity3d.com/
| /* ************************************************************************** | |
| Copyright 2012 Calvin Rien | |
| (http://the.darktable.com) | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 |