Skip to content

Instantly share code, notes, and snippets.

@peroon
Created June 18, 2015 08:14
Show Gist options
  • Save peroon/f3c9e900a079626052ef to your computer and use it in GitHub Desktop.
Save peroon/f3c9e900a079626052ef to your computer and use it in GitHub Desktop.
#unity ScriptableObjectをpublic変数で宣言して付けたり、Resources.Loadしたりできる
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);
}
}
@peroon
Copy link
Author

peroon commented Jun 18, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment