1 Star 0 Fork 15

lbzcode/UnityFun

forked from jzt/UnityFun 
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
XLuaGenConfig.cs 3.30 KB
一键复制 编辑 原始数据 按行查看 历史
陈勇星 提交于 2017-10-19 20:09 +08:00 . 完善3D视角行走
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using XLua;
using DG.Tweening;
using UnityEngine.EventSystems;
public static class LuaImportSetting
{
[CSObjectWrapEditor.GenPath]
public static string GenPath = "Assets/Scripts/XLuaGen";
[LuaCallCSharp]
public static List<Type> LuaCallCSharp = new List<Type>()
{
//UnityEngine
typeof(Vector2),
typeof(Vector3),
typeof(Quaternion),
typeof(Rect),
typeof(Plane),
typeof(GameObject),
typeof(Component),
typeof(Behaviour),
typeof(MonoBehaviour),
typeof(Transform),
typeof(Time),
typeof(Camera),
typeof(RenderTexture),
typeof(TextureFormat),
typeof(Input),
typeof(Sprite),
typeof(SpriteRenderer),
typeof(BoxCollider),
typeof(Ray),
typeof(LayerMask),
typeof(Animation),
typeof(AnimationState),
typeof(WrapMode),
typeof(Screen),
typeof(Application),
typeof(SkinnedMeshRenderer),
typeof(Material),
typeof(Font),
typeof(Color),
typeof(Resources),
typeof(RectTransform),
typeof(RectTransformUtility),
typeof(Canvas),
typeof(RawImage),
typeof(Image),
typeof(Text),
typeof(TextAnchor),
typeof(Button),
typeof(InputField),
typeof(Slider),
typeof(EventTrigger),
typeof(EventTrigger.Entry),
typeof(EventTriggerType),
typeof(ScrollRect),
typeof(RectMask2D),
typeof(ContentSizeFitter),
typeof(HorizontalLayoutGroup),
typeof(VerticalLayoutGroup),
typeof(GridLayoutGroup),
typeof(LayoutElement),
//DoTween
typeof(Tween),
typeof(TweenExtensions),
typeof(TweenSettingsExtensions),
typeof(ShortcutExtensions),
typeof(PathType),
typeof(Ease),
typeof(RotateMode),
//Custom
typeof(XLuaImportFix),
typeof(AssetBundleManager),
typeof(AssetBundleLoader),
typeof(ABLoaderBinder),
typeof(CombineMesh),
typeof(LogTool),
typeof(Util),
typeof(LoopVerticalScrollRect),
typeof(LoopHorizontalScrollRect),
typeof(LoopScrollPrefabSource),
typeof(LoopScrollSendIndexLuaSource),
};
[CSharpCallLua]
public static List<Type> CSharpCallLua = new List<Type>()
{
//lua_function -> delegate
typeof(Action),
typeof(UnityEngine.Events.UnityAction),
typeof(UnityEngine.Events.UnityAction<BaseEventData>),
typeof(TweenCallback),
typeof(AssetBundle),
typeof(AssetBundleLoader.LoadedCallback),
typeof(AssetBundleManager.SceneLoadedCallback),
typeof(LoopScrollSendIndexLuaSource.UpdateCell),
};
[BlackList]
public static List<List<string>> BlackList = new List<List<string>>()
{
new List<string>(){ "UnityEngine.Input", "IsJoystickPreconfigured", "System.String"},
new List<string>(){ "UnityEngine.UI.Text", "OnRebuildRequested"},
};
//static List<Type> GetDLLAllTypes(string dllName)
//{
// var list = new List<Type>();
// Assembly assembly = Assembly.Load(dllName);
// Type[] types = assembly.GetExportedTypes();
// foreach (Type t in types)
// {
// list.Add(t);
// }
// return list;
//}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lbzcode/UnityFun.git
git@gitee.com:lbzcode/UnityFun.git
lbzcode
UnityFun
UnityFun
master

搜索帮助