Created
June 18, 2015 08:14
-
-
Save peroon/f3c9e900a079626052ef to your computer and use it in GitHub Desktop.
#unity ScriptableObjectをpublic変数で宣言して付けたり、Resources.Loadしたりできる
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; | |
using System.Collections.Generic; | |
public class Manager : MonoBehaviour { | |
public NetworkData networkData; | |
void Start () { | |
Debug.Log (networkData.url); // NetworkDataProduction | |
Debug.Log ((Resources.Load ("NetworkDataStaging") as NetworkData).url); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ScriptableObjectの作り方
http://tsubakit1.hateblo.jp/entry/2015/06/12/013245