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; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class JsonUtilityTest : MonoBehaviour | |
{ | |
private void Start () | |
{ | |
var orgTest = new TestClass(); | |
orgTest.Log(); |
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; | |
/// <summary> | |
/// uGUIで3D空間のオブジェクト上に追従するHUD制御用コンポーネント | |
/// </summary> | |
public class HudControl : MonoBehaviour | |
{ | |
public Transform targetTrans; | |
public Vector3 offset = Vector3.zero; |
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 UnityEngine.UI; | |
using UnityEditor; | |
public class BitmapFontTextCreator | |
{ | |
// デフォルトカスタムフォントパス | |
const string DEFAULT_FONT_PATH = "Assets/CustomFont/customfont.fontsettings"; | |
// デフォルトフォントカラー | |
static readonly Color32 DEFAULT_COLOR = new Color32(50, 50, 50, 255); |
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 UnityEngine.UI; | |
using System.Collections; | |
/// <summary> | |
/// ビットマップフォントをuGUIで使用する場合、FontSizeの指定ができないため | |
/// 代替としてTransformのScaleによるスケーリングを行う | |
/// </summary> | |
public class BitmapFontScaler : 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 UnityEngine.Events; | |
using UnityEngine.EventSystems; | |
public class UGuiLongPress : MonoBehaviour, IPointerDownHandler, IPointerUpHandler | |
{ | |
/// <summary> | |
/// 押しっぱなし時に呼び出すイベント | |
/// </summary> | |
public UnityEvent onLongPress = new UnityEvent (); |
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; | |
public static class CaptureScreenAndroid | |
{ | |
/// <summary> | |
/// スクリーンショットを保存してギャラリーに反映させる | |
/// </summary> | |
public static void CaptureScreen (MonoBehaviour mb) | |
{ |
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; | |
[ExecuteInEditMode] | |
public class FixPlaneAspectRatio : MonoBehaviour | |
{ | |
enum HEIGHT_PARAM | |
{ | |
Y, | |
Z, |
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; | |
public class FadeTest : MonoBehaviour | |
{ | |
void Start () | |
{ | |
StartCoroutine (FadeAlpha ()); | |
} | |
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; | |
public class ResLoadAsyncTest : MonoBehaviour | |
{ | |
// リソースフォルダ以下のファイルパス | |
[SerializeField] | |
string filePath; | |
void Start () |
NewerOlder