Entries from 2016-02-04 to 1 day

#if UNITY_EDITOR

エディタ上だけしたいこと、例えば、PlayerPrefs使って設定したけど、今エディタ上では必要ないときとか。 void Awake(){ #if UNITY_EDITOR PlayerPrefs.DeleteAll (); #endif } unitygeek.hatenablog.com

それぞれのシーンに相当するオブジェクトの親をオンオフして、表示の切り替えをする。

UIの親につけるスクリプト UIAchievementMenu.cs using UnityEngine; using System.Collections; public class UIAchievementMenu : MonoBehaviour { private GameObject _container ; void Awake(){ _container = transform.FindChild("Container").gameObj…

UIテキストの自動改行、outlineの機能

自動改行は、日本語のテキストを用いる時に役に立つ!もっと早く知りたかった! tsubakit1.hateblo.jp www.atmarkit.co.jp

Scrollbar

hiyotama.hatenablog.comdocs.unity3d.com