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