| | |
| | | public static T LoadScriptableObject<T>(string name) where T : ScriptableObject |
| | | { |
| | | |
| | | T config; |
| | | T config = null; |
| | | if (AssetSource.builtInFromEditor) |
| | | { |
| | | #if UNITY_EDITOR |
| | |
| | | table.Dispose(); |
| | | } |
| | | |
| | | #if UNITY_EDITOR |
| | | [ContextMenu("LuaReload")] |
| | | public void ReLoadLua() |
| | | { |
| | | LuaUtility.DoString(fileName, "LuaBehaviour", table); |
| | | } |
| | | #endif |
| | | } |
| | |
| | | public static List<List<string>> BlackList = new List<List<string>>() { |
| | | new List<string>(){"System.Xml.XmlNodeList", "ItemOf"}, |
| | | new List<string>(){"UnityEngine.WWW", "movie"}, |
| | | new List<string>(){ "UnityEngine.UI.Text","OnRebuildRequested"}, |
| | | #if UNITY_WEBGL |
| | | new List<string>(){"UnityEngine.WWW", "threadPriority"}, |
| | | #endif |
| | |
| | | } |
| | | } |
| | | |
| | | #if UNITY_EDITOR |
| | | [ContextMenu("LuaReload")] |
| | | public void ReLoadLua() |
| | | { |
| | | LuaUtility.Do(filePath, this.gameObject.name, table); |
| | | |
| | | if (onBindController != null) |
| | | { |
| | | onBindController(); |
| | | } |
| | | |
| | | if (onAddListeners != null) |
| | | { |
| | | onAddListeners(); |
| | | } |
| | | } |
| | | #endif |
| | | } |
| | |
| | | return RetrospectWindow(parent.parent);
|
| | | }
|
| | | }
|
| | | #if UNITY_EDITOR
|
| | |
|
| | | private const string EDITOR_EFFECT_PATH = "Assets/ResourcesOut/Effect/UI/";
|
| | | private const string EFFECT_EXTENAL = ".prefab";
|
| | | public void Preview(string _name)
|
| | | {
|
| | | #if UNITY_EDITOR
|
| | | if (target != null)
|
| | | {
|
| | | DestroyImmediate(target);
|
| | |
| | | target.transform.localEulerAngles = Vector3.zero;
|
| | | target.transform.localScale = Vector3.one;
|
| | | Selection.activeGameObject = target.gameObject;
|
| | | }
|
| | | #endif
|
| | | }
|
| | |
|
| | | }
|
| | | #if UNITY_EDITOR
|
| | | [CustomEditor(typeof(UIEffect))]
|