Merge branch 'dev_hero' of https://git.wdd817.link/puxuan/c1_unity into dev_hero
This commit is contained in:
commit
46488baee7
@ -20,61 +20,32 @@ namespace BFEditor.Build
|
||||
}
|
||||
}
|
||||
|
||||
public static class BuildMode
|
||||
{
|
||||
public const string DEV = "dev";
|
||||
public const string TEST = "test";
|
||||
public const string PUBLISH = "publish";
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class BuildInfo
|
||||
{
|
||||
public string bundleName; // 包名
|
||||
public string version; // 版本号
|
||||
public string mode; // 渠道名_debug 或 渠道名_release
|
||||
public int version_code = 1; // 各自渠道的version_code
|
||||
public string mode; // 内网测试包,外网测试包,外网正式包
|
||||
public int versionCode = 1; // 各自渠道的version code
|
||||
public List<BulidGitInfo> git_info; // 打包的git信息
|
||||
public bool exportProject = false; // 是否只导出工程
|
||||
public bool onlyAssetBundle = false; // 是否只打ab包
|
||||
|
||||
[NonSerialized]
|
||||
public bool skipVersion = false; // 是否跳过版本校验
|
||||
|
||||
public bool IsGPChannel()
|
||||
{
|
||||
return bundleName == "com.combo.heroes.puzzle.rpg";
|
||||
}
|
||||
|
||||
public bool IsGPOfficial()
|
||||
{
|
||||
return bundleName == "com.combo.heroes.puzzle.rpg";
|
||||
}
|
||||
|
||||
// dev包使用mono编译,不会导出as工程
|
||||
public bool IsDevChannel()
|
||||
{
|
||||
return bundleName == "com.juzu.b6.dev" || bundleName == "com.juzu.b6.dev.android" ||
|
||||
bundleName == "com.juzu.b6.dev.ios";
|
||||
}
|
||||
|
||||
public bool IsReleaseChannel()
|
||||
{
|
||||
return !IsDevChannel();
|
||||
}
|
||||
|
||||
// 是否是内网release
|
||||
public bool IsLanRelease()
|
||||
{
|
||||
return bundleName == "com.juzu.b6.release.android" || bundleName == "com.juzu.b6.release.ios";
|
||||
}
|
||||
|
||||
public bool IsPublish()
|
||||
{
|
||||
return !IsDevChannel() && !IsLanRelease();
|
||||
return mode == BuildMode.PUBLISH;
|
||||
}
|
||||
|
||||
public bool IsIOSPlatform()
|
||||
{
|
||||
return bundleName.Contains("ios");
|
||||
}
|
||||
|
||||
public bool IsAndroidPlatform()
|
||||
{
|
||||
return !IsIOSPlatform();
|
||||
}
|
||||
|
||||
public string GetBundleName()
|
||||
{
|
||||
return bundleName;
|
||||
|
||||
@ -48,6 +48,12 @@ namespace BFEditor.Build
|
||||
return false;
|
||||
}
|
||||
|
||||
// 只打ab包
|
||||
if (buildInfo.onlyAssetBundle)
|
||||
{
|
||||
AssetDatabase.Refresh();
|
||||
return true;
|
||||
}
|
||||
// 删除不进包的多语言
|
||||
// if (!DeleteOverLanguageAb(buildInfo))
|
||||
// {
|
||||
@ -73,19 +79,10 @@ namespace BFEditor.Build
|
||||
watch.Start();
|
||||
|
||||
var result = false;
|
||||
|
||||
if (buildInfo.IsAndroidPlatform() && BuildAndroidUtils.BuildAndroidPlayer(buildInfo))
|
||||
if (BuildAndroidUtils.BuildAndroidPlayer(buildInfo))
|
||||
{
|
||||
result = true;
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR_OSX
|
||||
if (buildInfo.IsIOSPlatform() && BuildIOSUtils.BuildIOSPlayer(buildInfo))
|
||||
{
|
||||
result = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (result)
|
||||
{
|
||||
watch.Stop();
|
||||
@ -140,8 +137,7 @@ namespace BFEditor.Build
|
||||
var watch = new System.Diagnostics.Stopwatch();
|
||||
watch.Start();
|
||||
|
||||
// var buildTarget = buildInfo.IsIOSPlatform() ? BuildTarget.iOS : BuildTarget.Android;
|
||||
var isRelease = buildInfo.IsReleaseChannel();
|
||||
var isRelease = true;
|
||||
Debug.Log("[bfinfo]开始打包资源, bundleName : " + buildInfo.bundleName + " version : " + buildInfo.version + " mode : " + buildInfo.mode);
|
||||
|
||||
// // 检查平台
|
||||
@ -197,7 +193,7 @@ namespace BFEditor.Build
|
||||
}
|
||||
|
||||
// 本地缓存ab
|
||||
if (buildInfo.IsReleaseChannel())
|
||||
if (buildInfo.IsPublish())
|
||||
{
|
||||
Debug.Log("[bfinfo]正在缓存assetbundles...");
|
||||
BFEditorUtils.CopyDirWithIgnore(outputPath, Path.Combine(AssetBundleCachePath, buildInfo.version), new List<string> { ".meta" });
|
||||
|
||||
@ -6,77 +6,116 @@ namespace BFEditor.Build
|
||||
public enum BFPlatformOptions
|
||||
{
|
||||
AndroidDev = 1,
|
||||
IOSDev,
|
||||
AndroidRelease,
|
||||
AndroidTest,
|
||||
AndroidGP,
|
||||
AndroidGPRU
|
||||
}
|
||||
|
||||
public class BuildProjectWindow : EditorWindow
|
||||
{
|
||||
private static int versionCode = 18;
|
||||
private static string versionName = "1.6.5";
|
||||
private static int VersionCode = 4;
|
||||
private static string VersionName = "1.2.10";
|
||||
private static int VersionCodeRU = 12;
|
||||
private static string VersionNameRU = "0.4.9";
|
||||
BFPlatformOptions platform = BFPlatformOptions.AndroidDev;
|
||||
const string ANDROID_DEV_PACKAGE_NAME = "com.juzu.b6.dev.android";
|
||||
const string ANDROID_RELEASE_PACKAGE_NAME = "com.juzu.b6.release.android";
|
||||
const string ANDROID_GP_PACKAGE_NAME = "com.combo.heroes.puzzle.rpg";
|
||||
const string IOS_PACKAGE_NAME = "com.juzu.b6.dev.ios";
|
||||
const string ANDROID_GP_PACKAGE_NAME = "com.c1.dev.android";
|
||||
|
||||
public BuildProjectWindow()
|
||||
{
|
||||
titleContent = new GUIContent("打包");
|
||||
}
|
||||
{
|
||||
titleContent = new GUIContent("打包");
|
||||
}
|
||||
|
||||
private void OnEnable() { }
|
||||
|
||||
void OnGUI()
|
||||
{
|
||||
GUILayout.BeginVertical("box");
|
||||
|
||||
EditorGUILayout.LabelField("选择渠道");
|
||||
platform = (BFPlatformOptions)EditorGUILayout.EnumPopup("", platform);
|
||||
EditorGUILayout.Space();
|
||||
|
||||
EditorGUILayout.LabelField("版本: " + versionName);
|
||||
EditorGUILayout.Space();
|
||||
|
||||
string packageName;
|
||||
string mode;
|
||||
string versionName = VersionName;
|
||||
int versionCode = VersionCode;
|
||||
bool skipVersion = false;
|
||||
string appType;
|
||||
if (platform == BFPlatformOptions.AndroidDev)
|
||||
{
|
||||
packageName = ANDROID_DEV_PACKAGE_NAME;
|
||||
packageName = ANDROID_GP_PACKAGE_NAME;
|
||||
skipVersion = true;
|
||||
mode = "dev_debug";
|
||||
mode = BuildMode.DEV;
|
||||
versionName = "0.1.0";
|
||||
versionCode = 1;
|
||||
appType = "内网测试包";
|
||||
}
|
||||
else if(platform == BFPlatformOptions.AndroidRelease)
|
||||
else if(platform == BFPlatformOptions.AndroidTest)
|
||||
{
|
||||
packageName = ANDROID_RELEASE_PACKAGE_NAME;
|
||||
mode = "release_release";
|
||||
packageName = ANDROID_GP_PACKAGE_NAME;
|
||||
mode = BuildMode.TEST;
|
||||
versionName = "0.1.0";
|
||||
versionCode = 1;
|
||||
appType = "外网测试包";
|
||||
}
|
||||
else if(platform == BFPlatformOptions.AndroidGP)
|
||||
{
|
||||
packageName = ANDROID_GP_PACKAGE_NAME;
|
||||
mode = "publish_release";
|
||||
mode = BuildMode.PUBLISH;
|
||||
appType = "外网正式包";
|
||||
}
|
||||
else
|
||||
{
|
||||
packageName = IOS_PACKAGE_NAME;
|
||||
mode = "dev_debug";
|
||||
packageName = ANDROID_GP_PACKAGE_NAME;
|
||||
skipVersion = true;
|
||||
mode = BuildMode.DEV;
|
||||
versionName = "0.1.0";
|
||||
versionCode = 1;
|
||||
appType = "内网测试包";
|
||||
}
|
||||
GUILayout.BeginVertical("box");
|
||||
EditorGUILayout.LabelField("选择");
|
||||
platform = (BFPlatformOptions)EditorGUILayout.EnumPopup("", platform);
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.LabelField("版本: " + versionName);
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.LabelField("包名: " + packageName);
|
||||
EditorGUILayout.LabelField("mode: " + mode);
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.LabelField(appType);
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.Space();
|
||||
|
||||
EditorGUILayout.Space();
|
||||
var buildInfo = new BuildInfo();
|
||||
buildInfo.version = versionName;
|
||||
buildInfo.versionCode = versionCode;
|
||||
buildInfo.mode = mode;
|
||||
buildInfo.bundleName = packageName;
|
||||
buildInfo.skipVersion = skipVersion;
|
||||
|
||||
if (GUILayout.Button("一键打包"))
|
||||
if (GUILayout.Button("一键APK"))
|
||||
{
|
||||
var buildInfo = new BuildInfo();
|
||||
buildInfo.version = versionName;
|
||||
buildInfo.version_code = versionCode;
|
||||
buildInfo.mode = mode;
|
||||
buildInfo.bundleName = packageName;
|
||||
buildInfo.skipVersion = skipVersion;
|
||||
buildInfo.exportProject = false;
|
||||
buildInfo.onlyAssetBundle = false;
|
||||
BuildProjectTools.BuildBFPlayer(buildInfo);
|
||||
}
|
||||
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.Space();
|
||||
|
||||
if (GUILayout.Button("仅导出工程"))
|
||||
{
|
||||
buildInfo.exportProject = true;
|
||||
buildInfo.onlyAssetBundle = false;
|
||||
BuildProjectTools.BuildBFPlayer(buildInfo);
|
||||
}
|
||||
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.Space();
|
||||
|
||||
if (GUILayout.Button("仅打ab包"))
|
||||
{
|
||||
buildInfo.exportProject = true;
|
||||
buildInfo.onlyAssetBundle = true;
|
||||
BuildProjectTools.BuildBFPlayer(buildInfo);
|
||||
}
|
||||
|
||||
|
||||
@ -77,25 +77,12 @@ namespace BFEditor.Build
|
||||
Directory.CreateDirectory(outputPath);
|
||||
}
|
||||
|
||||
AssetBundleManifest manifest;
|
||||
if (release)
|
||||
{
|
||||
manifest = BuildPipeline.BuildAssetBundles(outputPath, options |
|
||||
BuildAssetBundleOptions.StrictMode |
|
||||
BuildAssetBundleOptions.DisableLoadAssetByFileName |
|
||||
BuildAssetBundleOptions.DisableLoadAssetByFileNameWithExtension |
|
||||
BuildAssetBundleOptions.DeterministicAssetBundle,
|
||||
target);
|
||||
}
|
||||
else
|
||||
{
|
||||
manifest = BuildPipeline.BuildAssetBundles(outputPath, options |
|
||||
BuildAssetBundleOptions.StrictMode |
|
||||
BuildAssetBundleOptions.DisableLoadAssetByFileName |
|
||||
BuildAssetBundleOptions.DisableLoadAssetByFileNameWithExtension |
|
||||
BuildAssetBundleOptions.DeterministicAssetBundle,
|
||||
target);
|
||||
}
|
||||
AssetBundleManifest manifest = BuildPipeline.BuildAssetBundles(outputPath, options |
|
||||
BuildAssetBundleOptions.StrictMode |
|
||||
BuildAssetBundleOptions.DisableLoadAssetByFileName |
|
||||
BuildAssetBundleOptions.DisableLoadAssetByFileNameWithExtension |
|
||||
BuildAssetBundleOptions.DeterministicAssetBundle,
|
||||
target);
|
||||
|
||||
if (manifest == null)
|
||||
{
|
||||
@ -365,12 +352,12 @@ namespace BFEditor.Build
|
||||
SetProtoABName(Path.Combine(Application.dataPath, "proto"), index++ / total);
|
||||
SetSpineABName(Path.Combine(Application.dataPath, "arts", "spines"), index++ / total);
|
||||
SetFirstABName(Path.Combine(Application.dataPath, "first"), index++ / total);
|
||||
// SetTimelineABName(Path.Combine(Application.dataPath, "arts", "timeline"), 16f / total);
|
||||
// SetTimelineABName(Path.Combine(Application.dataPath, "arts", "timeline"), index++ / total);
|
||||
SetVideoABName(Path.Combine(Application.dataPath, "arts", "video"), index++ / total);
|
||||
// SetLanguageResABName(Resource.ResourceProcessConfig.LANGUAGE_PATH, 19f / total);
|
||||
// SetBakedatasABName(Path.Combine(Application.dataPath, "arts", "bakedatas"), 21f / total);
|
||||
// SetLightProbesABName(Path.Combine(Application.dataPath, "arts", "lightprobes"), 22f / total);
|
||||
// SetReflectionsABName(Path.Combine(Application.dataPath, "arts", "reflections"), 23f / total);
|
||||
// SetLanguageResABName(Resource.ResourceProcessConfig.LANGUAGE_PATH, index++ / total);
|
||||
// SetBakedatasABName(Path.Combine(Application.dataPath, "arts", "bakedatas"), index++ / total);
|
||||
// SetLightProbesABName(Path.Combine(Application.dataPath, "arts", "lightprobes"), index++ / total);
|
||||
// SetReflectionsABName(Path.Combine(Application.dataPath, "arts", "reflections"), index++ / total);
|
||||
|
||||
EditorUtility.ClearProgressBar();
|
||||
AssetDatabase.SaveAssets();
|
||||
@ -572,11 +559,11 @@ namespace BFEditor.Build
|
||||
{
|
||||
EditorUtility.DisplayProgressBar("提示", "正在设置spine ABName", progress);
|
||||
|
||||
var dirInfo = new DirectoryInfo(dirPath);
|
||||
var dirs = dirInfo.GetDirectories();
|
||||
for (var i = 0; i < dirs.Length; i++)
|
||||
string[] dirList = { "ui" , "characters" };
|
||||
for (var i = 0; i < dirList.Length; ++i)
|
||||
{
|
||||
SetABNameBySubDir(dirs[i]);
|
||||
var dirInfo = new DirectoryInfo(Path.Combine(dirPath, dirList[i]));
|
||||
SetABNameBySubDir(dirInfo);
|
||||
}
|
||||
}
|
||||
|
||||
@ -596,6 +583,11 @@ namespace BFEditor.Build
|
||||
var dirInfo = new DirectoryInfo(Path.Combine(dirPath, dirList[i]));
|
||||
SetABNameBySubDir(dirInfo);
|
||||
}
|
||||
var dirInfo2 = new DirectoryInfo(Path.Combine(dirPath, "ui", "activity"));
|
||||
if (dirInfo2.Exists)
|
||||
{
|
||||
SetABNameBySubDir(dirInfo2);
|
||||
}
|
||||
}
|
||||
|
||||
static void SetBackgroundABName(string dirPath)
|
||||
|
||||
@ -3,9 +3,9 @@ using UnityEditor;
|
||||
using System.IO;
|
||||
using UnityEditor.Build.Reporting;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Threading;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace BFEditor.Build
|
||||
{
|
||||
@ -24,13 +24,13 @@ namespace BFEditor.Build
|
||||
static string BuglyPath = Application.dataPath + "/../Bugly";
|
||||
static string BuglySOPath = Application.dataPath + "/../Bugly/so";
|
||||
static string GradleExcuteProjectPath = Application.dataPath + "/../BFVersions/android/ub-release";
|
||||
static string DevAsProjectPath = Application.dataPath + "/../BFVersions/android/dz_dev";
|
||||
static string LanReleaseAsProjectPath = Application.dataPath + "/../BFVersions/android/dz_release";
|
||||
static string GoogleAsProjectPath = Application.dataPath + "/../BFVersions/android/dz_google_apk";
|
||||
static string GoogleCommonProjectPath = Application.dataPath + "/../BFVersions/android/google_common";
|
||||
static string GPAsProjectPath = Application.dataPath + "/../BFVersions/android/ub-gp"; // gp删档测试渠道
|
||||
static string GPOfficialAsProjectPath = Application.dataPath + "/../BFVersions/android/ub-google"; // gp正式渠道
|
||||
static string RuStoreProjectPath = Application.dataPath + "/../BFVersions/android/ru_store";
|
||||
static string RuProjectPath = Application.dataPath + "/../BFVersions/android/ru";
|
||||
static string GoogleServicesProjectPath = Application.dataPath + "/../BFVersions/android/google-services";
|
||||
static string PublishAsProjectPath = Application.dataPath + "/../BFVersions/android/publish_release";
|
||||
static string KeystoreFilePath = Application.dataPath + "/../BFVersions/android/keystore/dz_keystore.txt";
|
||||
static string SignShellPath = Application.dataPath + "/../BFFiles/androidkey";
|
||||
static string GpAlginShellPath = Application.dataPath + "/../BFFiles/androidkey";
|
||||
static HashSet<string> AABInPackageFileHashSet = new HashSet<string>()
|
||||
@ -77,10 +77,19 @@ namespace BFEditor.Build
|
||||
var bpOptions = GetBuildOptions(buildInfo);
|
||||
var report = BuildPipeline.BuildPlayer(bpOptions);
|
||||
|
||||
// 打包成功
|
||||
// 导出工程成功
|
||||
if (report.summary.result == BuildResult.Succeeded)
|
||||
{
|
||||
return BuildAndroidAPK(buildInfo);
|
||||
MergeProject(buildInfo, GoogleAsProjectPath);
|
||||
FixGradleVersion(buildInfo.versionCode, buildInfo.version);
|
||||
if (buildInfo.exportProject)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return BuildAPK(buildInfo);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -98,7 +107,7 @@ namespace BFEditor.Build
|
||||
PlayerSettings.bundleVersion = buildInfo.version;
|
||||
|
||||
// 设置VersionCode
|
||||
PlayerSettings.Android.bundleVersionCode = buildInfo.version_code;
|
||||
PlayerSettings.Android.bundleVersionCode = buildInfo.versionCode;
|
||||
|
||||
// 设置竖屏
|
||||
PlayerSettings.defaultInterfaceOrientation = UIOrientation.Portrait;
|
||||
@ -118,41 +127,33 @@ namespace BFEditor.Build
|
||||
|
||||
// 设置包名
|
||||
PlayerSettings.SetApplicationIdentifier(BuildTargetGroup.Android, buildInfo.bundleName);
|
||||
Debug.Log("[bfinfo]设置包名:" + buildInfo.bundleName);
|
||||
|
||||
// 跳过版本控制
|
||||
var symbols = ANDROID_DEFINE_SYMBOLS;
|
||||
if (buildInfo.skipVersion)
|
||||
{
|
||||
symbols = symbols + ";SKIP_VERSION;";
|
||||
symbols = symbols + ";SKIP_VERSION";
|
||||
}
|
||||
if (buildInfo.mode == BuildMode.DEV)
|
||||
{
|
||||
symbols = symbols + ";BF_APP_DEV";
|
||||
}
|
||||
else if (buildInfo.mode == BuildMode.TEST)
|
||||
{
|
||||
symbols = symbols + ";BF_APP_TEST";
|
||||
}
|
||||
|
||||
PlayerSettings.SetScriptingDefineSymbolsForGroup(BuildTargetGroup.Android, symbols);
|
||||
Debug.Log("[bfinfo]设置defineSymbols: " + symbols);
|
||||
|
||||
// 是否是dev
|
||||
var development = buildInfo.IsDevChannel() ? true : false;
|
||||
EditorUserBuildSettings.development = development;
|
||||
|
||||
// 商品名称
|
||||
// 应用名
|
||||
if (buildInfo.IsPublish())
|
||||
{
|
||||
PlayerSettings.productName = "Knights Combo";
|
||||
}
|
||||
else
|
||||
{
|
||||
PlayerSettings.productName = development ? "b6-dev" : "b6-release";
|
||||
}
|
||||
// BuildType设置dev/release
|
||||
EditorUserBuildSettings.androidBuildType = development ? AndroidBuildType.Debug : AndroidBuildType.Release;
|
||||
PlayerSettings.productName = "Pull Pull Pull Heroes";
|
||||
EditorUserBuildSettings.development = false;
|
||||
EditorUserBuildSettings.androidBuildType = AndroidBuildType.Release;
|
||||
|
||||
// 是否导出as工程
|
||||
// EditorUserBuildSettings.exportAsGoogleAndroidProject = development ? false : true;
|
||||
EditorUserBuildSettings.exportAsGoogleAndroidProject = true;
|
||||
|
||||
// dev使用Mono release使用IL2CPP
|
||||
var scriptImp = development ? ScriptingImplementation.Mono2x : ScriptingImplementation.IL2CPP;
|
||||
var scriptImp = ScriptingImplementation.IL2CPP;
|
||||
PlayerSettings.SetScriptingBackend(BuildTargetGroup.Android, scriptImp);
|
||||
}
|
||||
|
||||
@ -164,29 +165,9 @@ namespace BFEditor.Build
|
||||
var bpOptions = new BuildPlayerOptions();
|
||||
bpOptions.scenes = AssetBundleUtils.GetBuildScenes();
|
||||
bpOptions.target = BuildTarget.Android;
|
||||
|
||||
// if (buildInfo.IsDevChannel())
|
||||
// {
|
||||
// bpOptions.locationPathName = GetDevApkPathName(buildInfo);
|
||||
// Debug.Log("[bfinfo]apk path : " + bpOptions.locationPathName);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// bpOptions.locationPathName = GetASProjectPathName();
|
||||
// Debug.Log("[bfinfo]asProject path : " + bpOptions.locationPathName);
|
||||
// }
|
||||
bpOptions.locationPathName = GetASProjectPathName(buildInfo);
|
||||
|
||||
BuildOptions options;
|
||||
if (buildInfo.IsReleaseChannel())
|
||||
{
|
||||
options = BuildOptions.None;
|
||||
}
|
||||
else
|
||||
{
|
||||
options = BuildOptions.Development;
|
||||
}
|
||||
|
||||
BuildOptions options = BuildOptions.None;
|
||||
bpOptions.options = options;
|
||||
return bpOptions;
|
||||
}
|
||||
@ -200,7 +181,7 @@ namespace BFEditor.Build
|
||||
|
||||
static string GetASProjectPathName(BuildInfo buildInfo)
|
||||
{
|
||||
var dir = Path.Combine(AS_PROJECT_PATH, buildInfo.mode);
|
||||
var dir = Path.Combine(AS_PROJECT_PATH, "publish_release");
|
||||
if (Directory.Exists(dir))
|
||||
{
|
||||
Directory.Delete(dir, true);
|
||||
@ -208,32 +189,53 @@ namespace BFEditor.Build
|
||||
return dir;
|
||||
}
|
||||
|
||||
static bool BuildAPK(BuildInfo buildInfo)
|
||||
static bool BuildAPK(BuildInfo buildInfo, bool isAAB = false)
|
||||
{
|
||||
if (buildInfo.IsGPChannel())
|
||||
{
|
||||
MergeGPToReleaseProject(buildInfo);
|
||||
FixGradleVersion(buildInfo.version_code, buildInfo.version);
|
||||
}
|
||||
// 设置jdk环境变量
|
||||
string javaHomePath = System.Environment.GetEnvironmentVariable("JAVE_HOME");
|
||||
if (string.IsNullOrEmpty(javaHomePath))
|
||||
{
|
||||
Debug.LogError("[bferror] 找不到环境变量JAVE_HOME");
|
||||
return false;
|
||||
}
|
||||
var gradleFilePath = Path.Combine(PublishAsProjectPath, "gradle.properties");
|
||||
var gradleFileText = File.ReadAllText(gradleFilePath);
|
||||
if (!gradleFileText.Contains("org.gradle.java.home"))
|
||||
{
|
||||
gradleFileText = gradleFileText + "\norg.gradle.java.home=" + javaHomePath.Replace("\\", "/");
|
||||
}
|
||||
File.WriteAllText(gradleFilePath, gradleFileText);
|
||||
|
||||
if (buildInfo.IsLanRelease())
|
||||
{
|
||||
AddBuglyParamsToReleaseProject();
|
||||
}
|
||||
// 设置密钥密码
|
||||
if (File.Exists(KeystoreFilePath))
|
||||
{
|
||||
var password = File.ReadAllText(KeystoreFilePath).Replace("\n", "").Replace("\r", "");
|
||||
var buildGradlePath = Path.Combine(PublishAsProjectPath, "launcher/build.gradle");
|
||||
var text = File.ReadAllText(buildGradlePath);
|
||||
var regex = new Regex("REPLACE_PASSWORD");
|
||||
text = regex.Replace(text, password);
|
||||
File.WriteAllText(buildGradlePath, text);
|
||||
}
|
||||
|
||||
Debug.Log("[bfinfo]正在buildApk...");
|
||||
var success = true;
|
||||
var args = "";
|
||||
if (buildInfo.IsReleaseChannel())
|
||||
{
|
||||
args += " assembleRelease";
|
||||
}
|
||||
else
|
||||
{
|
||||
args += " assembleDebug";
|
||||
}
|
||||
|
||||
BFEditorUtils.RunCommond(GRADLE_PATH, args, GradleExcuteProjectPath,
|
||||
var args = "assembleRelease";
|
||||
if (isAAB)
|
||||
{
|
||||
args = "bundleRelease";
|
||||
}
|
||||
string gradleHomePath = System.Environment.GetEnvironmentVariable("GRADLE_HOME");
|
||||
if (string.IsNullOrEmpty(gradleHomePath))
|
||||
{
|
||||
Debug.LogError("[bferror] 找不到环境变量GRADLE_HOME");
|
||||
return false;
|
||||
}
|
||||
#if UNITY_EDITOR_OSX
|
||||
var gradleCommondPath = Path.Combine(gradleHomePath, "gradle");
|
||||
#else
|
||||
var gradleCommondPath = Path.Combine(gradleHomePath, "gradle.bat");
|
||||
#endif
|
||||
BFEditorUtils.RunCommond(gradleCommondPath, args, PublishAsProjectPath,
|
||||
(msg) =>
|
||||
{
|
||||
},
|
||||
@ -245,80 +247,35 @@ namespace BFEditor.Build
|
||||
Debug.LogError("[bferror] " + errorMsg);
|
||||
}
|
||||
});
|
||||
|
||||
if (buildInfo.IsGPChannel())
|
||||
{
|
||||
// 尝试制作并上传bugly符号表 开新Thread不影响打包流程
|
||||
if (success)
|
||||
{
|
||||
CopySOAndUploadBuglySymbol(buildInfo.bundleName, buildInfo.version);
|
||||
}
|
||||
}
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
static bool BuildAAB(BuildInfo buildInfo)
|
||||
{
|
||||
var result = true;
|
||||
if(buildInfo.IsGPChannel())
|
||||
{
|
||||
// MergeGPToReleaseProject(buildInfo);
|
||||
// FixGradleVersion(buildInfo.version_code, buildInfo.version);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
static bool BuildAndroidAPK(BuildInfo buildInfo)
|
||||
{
|
||||
var result = true;
|
||||
if(buildInfo.IsDevChannel())
|
||||
{
|
||||
MergeProject(buildInfo, DevAsProjectPath);
|
||||
var dir = Path.Combine(Application.dataPath, "../", AS_PROJECT_PATH, buildInfo.mode);
|
||||
BFEditorUtils.RunCommond("gradle", " assembleDebug", dir, (msg) => {
|
||||
}, (errorMsg) => {
|
||||
Debug.LogError("[bferror] " + errorMsg);
|
||||
});
|
||||
}
|
||||
else if(buildInfo.IsLanRelease())
|
||||
{
|
||||
MergeProject(buildInfo, LanReleaseAsProjectPath);
|
||||
}
|
||||
else if(buildInfo.IsGPChannel())
|
||||
{
|
||||
MergeProject(buildInfo, GoogleAsProjectPath);
|
||||
FixGradleVersion(buildInfo.version_code, buildInfo.version);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 合并dev工程
|
||||
/// 合并工程
|
||||
/// </summary>
|
||||
static void MergeProject(BuildInfo buildInfo, String asProjectPath)
|
||||
{
|
||||
Debug.Log("[bfinfo]正在整合dev project...");
|
||||
Debug.Log("[bfinfo]正在整合 project...");
|
||||
|
||||
var dir = Path.Combine(Application.dataPath, "../", AS_PROJECT_PATH, buildInfo.mode);
|
||||
var dir = Path.Combine(Application.dataPath, "../", AS_PROJECT_PATH, "publish_release");
|
||||
|
||||
var javaPath = Path.Combine(dir, "unityLibrary/src/main/java");
|
||||
var manifestPath = Path.Combine(dir, "unityLibrary/src/main/AndroidManifest.xml");
|
||||
|
||||
// 老版本unity需要替换这个,2021之后的新版本不需要
|
||||
// 获取到unity打出的build-id
|
||||
var reader = new StreamReader(new FileStream(manifestPath, FileMode.Open));
|
||||
string buildIdLine;
|
||||
while ((buildIdLine = reader.ReadLine()) != null)
|
||||
{
|
||||
if (buildIdLine.Contains("unity.build-id"))
|
||||
{
|
||||
Debug.Log("[bfinfo]修正build-id: " + buildIdLine);
|
||||
break;
|
||||
}
|
||||
}
|
||||
reader.Close();
|
||||
reader.Dispose();
|
||||
// var reader = new StreamReader(new FileStream(manifestPath, FileMode.Open));
|
||||
// string buildIdLine;
|
||||
// while ((buildIdLine = reader.ReadLine()) != null)
|
||||
// {
|
||||
// if (buildIdLine.Contains("unity.build-id"))
|
||||
// {
|
||||
// Debug.Log("[bfinfo]修正build-id: " + buildIdLine);
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// reader.Close();
|
||||
// reader.Dispose();
|
||||
|
||||
if (Directory.Exists(javaPath))
|
||||
{
|
||||
@ -326,71 +283,62 @@ namespace BFEditor.Build
|
||||
di.Delete(true);
|
||||
}
|
||||
|
||||
BFEditorUtils.CopyDir(GoogleCommonProjectPath, dir);
|
||||
// 获取到google_common复制过去的build.gradle和AndroidManifest
|
||||
var buildGradlePath = Path.Combine(dir, "launcher/build.gradle");
|
||||
var text = File.ReadAllText(buildGradlePath);
|
||||
var regex = new Regex("REPLACE_APPLICATION_ID");
|
||||
text = regex.Replace(text, buildInfo.bundleName);
|
||||
File.WriteAllText(buildGradlePath, text);
|
||||
// 如果是俄罗斯支付 则需要覆盖为俄罗斯相关文件
|
||||
// if (buildInfo.bundleName == BF.BFPlatform.ANDROID_GP_PACKAGE_NAME_RU)
|
||||
// {
|
||||
// BFEditorUtils.CopyDir(RuProjectPath, dir);
|
||||
// // 获取到build.gradle和AndroidManifest
|
||||
// var buildGradlePath = Path.Combine(dir, "launcher/build.gradle");
|
||||
// var text = File.ReadAllText(buildGradlePath);
|
||||
// var regex = new Regex("REPLACE_APPLICATION_ID");
|
||||
// text = regex.Replace(text, buildInfo.bundleName);
|
||||
// File.WriteAllText(buildGradlePath, text);
|
||||
|
||||
var androidManifestPath = Path.Combine(dir, "launcher/src/main/AndroidManifest.xml");
|
||||
text = File.ReadAllText(androidManifestPath);
|
||||
regex = new Regex("REPLACE_APPLICATION_ID");
|
||||
text = regex.Replace(text, buildInfo.bundleName);
|
||||
File.WriteAllText(androidManifestPath, text);
|
||||
// var androidManifestPath = Path.Combine(dir, "launcher/src/main/AndroidManifest.xml");
|
||||
// text = File.ReadAllText(androidManifestPath);
|
||||
// regex = new Regex("REPLACE_APPLICATION_ID");
|
||||
// text = regex.Replace(text, buildInfo.bundleName);
|
||||
// File.WriteAllText(androidManifestPath, text);
|
||||
|
||||
BFEditorUtils.CopyDir(asProjectPath, dir);
|
||||
// // 还有另一个AndroidManifest
|
||||
// androidManifestPath = Path.Combine(dir, "unityLibrary/src/main/AndroidManifest.xml");
|
||||
// text = File.ReadAllText(androidManifestPath);
|
||||
// regex = new Regex("REPLACE_APPLICATION_ID");
|
||||
// text = regex.Replace(text, buildInfo.bundleName);
|
||||
// File.WriteAllText(androidManifestPath, text);
|
||||
// }
|
||||
// // 否则使用通用谷歌
|
||||
// else
|
||||
// {
|
||||
BFEditorUtils.CopyDir(GoogleCommonProjectPath, dir);
|
||||
// 获取到google_common复制过去的build.gradle和AndroidManifest
|
||||
var buildGradlePath = Path.Combine(dir, "launcher/build.gradle");
|
||||
var text = File.ReadAllText(buildGradlePath);
|
||||
var regex = new Regex("REPLACE_APPLICATION_ID");
|
||||
text = regex.Replace(text, buildInfo.bundleName);
|
||||
File.WriteAllText(buildGradlePath, text);
|
||||
|
||||
text = File.ReadAllText(manifestPath);
|
||||
regex = new Regex("REPLACE_BUILD_ID");
|
||||
text = regex.Replace(text, buildIdLine);
|
||||
File.WriteAllText(manifestPath, text);
|
||||
}
|
||||
var androidManifestPath = Path.Combine(dir, "launcher/src/main/AndroidManifest.xml");
|
||||
text = File.ReadAllText(androidManifestPath);
|
||||
regex = new Regex("REPLACE_APPLICATION_ID");
|
||||
text = regex.Replace(text, buildInfo.bundleName);
|
||||
File.WriteAllText(androidManifestPath, text);
|
||||
|
||||
/// <summary>
|
||||
/// 合并gp工程
|
||||
/// </summary>
|
||||
static void MergeGPToReleaseProject(BuildInfo buildInfo)
|
||||
{
|
||||
Debug.Log("[bfinfo]正在整合gp渠道sdk...");
|
||||
|
||||
var javaPath = GradleExcuteProjectPath + "/src/main/java";
|
||||
var manifestPath = GradleExcuteProjectPath + "/src/main/AndroidManifest.xml";
|
||||
|
||||
// 获取到unity打出的build-id
|
||||
var reader = new StreamReader(new FileStream(manifestPath, FileMode.Open));
|
||||
string buildIdLine;
|
||||
while ((buildIdLine = reader.ReadLine()) != null)
|
||||
{
|
||||
if (buildIdLine.Contains("unity.build-id"))
|
||||
{
|
||||
Debug.Log("[bfinfo]修正build-id: " + buildIdLine);
|
||||
break;
|
||||
}
|
||||
}
|
||||
reader.Close();
|
||||
reader.Dispose();
|
||||
|
||||
if (Directory.Exists(javaPath))
|
||||
{
|
||||
var di = new DirectoryInfo(javaPath);
|
||||
di.Delete(true);
|
||||
}
|
||||
|
||||
if (buildInfo.IsGPOfficial())
|
||||
BFEditorUtils.CopyDir(asProjectPath, dir);
|
||||
// 还有dz_google_apk下的AndroidManifest
|
||||
androidManifestPath = Path.Combine(dir, "unityLibrary/src/main/AndroidManifest.xml");
|
||||
text = File.ReadAllText(androidManifestPath);
|
||||
regex = new Regex("REPLACE_APPLICATION_ID");
|
||||
text = regex.Replace(text, buildInfo.bundleName);
|
||||
File.WriteAllText(androidManifestPath, text);
|
||||
// }
|
||||
// 统一替换google-services文件
|
||||
var gsPath = Path.Combine(GoogleServicesProjectPath, Path.Combine(buildInfo.bundleName, "google-services.json"));
|
||||
if (File.Exists(gsPath))
|
||||
{
|
||||
BFEditorUtils.CopyDir(GPOfficialAsProjectPath, GradleExcuteProjectPath);
|
||||
var destFilePath = Path.Combine(dir, "launcher/google-services.json");
|
||||
File.Copy(gsPath, destFilePath, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
BFEditorUtils.CopyDir(GPAsProjectPath, GradleExcuteProjectPath);
|
||||
}
|
||||
|
||||
var text = File.ReadAllText(manifestPath);
|
||||
var regex = new Regex("REPLACE_BUILD_ID");
|
||||
text = regex.Replace(text, buildIdLine);
|
||||
File.WriteAllText(manifestPath, text);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -1,348 +1,348 @@
|
||||
#if UNITY_EDITOR_OSX
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
using UnityEditor.Build.Reporting;
|
||||
using UnityEditor.iOS.Xcode;
|
||||
using System.IO;
|
||||
#endif
|
||||
// #if UNITY_EDITOR_OSX
|
||||
// using UnityEngine;
|
||||
// using UnityEditor;
|
||||
// using UnityEditor.Build.Reporting;
|
||||
// using UnityEditor.iOS.Xcode;
|
||||
// using System.IO;
|
||||
// #endif
|
||||
|
||||
namespace BFEditor.Build
|
||||
{
|
||||
public static class BuildIOSUtils
|
||||
{
|
||||
#if UNITY_EDITOR_OSX
|
||||
const string IOS_DEFINE_SYMBOLS = "THREAD_SAFE;USE_AB";
|
||||
const string DEV_XCODE_LOCAL_PATH = "BFVersions/ios/dev";
|
||||
const string RELEASE_XCODE_LOCAL_PATH = "BFVersions/ios/release";
|
||||
// namespace BFEditor.Build
|
||||
// {
|
||||
// public static class BuildIOSUtils
|
||||
// {
|
||||
// #if UNITY_EDITOR_OSX
|
||||
// const string IOS_DEFINE_SYMBOLS = "THREAD_SAFE;USE_AB";
|
||||
// const string DEV_XCODE_LOCAL_PATH = "BFVersions/ios/dev";
|
||||
// const string RELEASE_XCODE_LOCAL_PATH = "BFVersions/ios/release";
|
||||
|
||||
static string devXCodePath = Application.dataPath + "/../" + DEV_XCODE_LOCAL_PATH;
|
||||
static string releaseXCodePath = Application.dataPath + "/../" + RELEASE_XCODE_LOCAL_PATH;
|
||||
static string devOptionsPListPath = Application.dataPath + "/../" + "BFVersions/ios/exports/dev/ExportOptions.plist";
|
||||
static string releaseOptionsPListPath = Application.dataPath + "/../" + "BFVersions/ios/exports/release/ExportOptions.plist";
|
||||
static string publishOptionsPListPath = Application.dataPath + "/../" + "BFVersions/ios/exports/dis/ExportOptions.plist";
|
||||
// static string devXCodePath = Application.dataPath + "/../" + DEV_XCODE_LOCAL_PATH;
|
||||
// static string releaseXCodePath = Application.dataPath + "/../" + RELEASE_XCODE_LOCAL_PATH;
|
||||
// static string devOptionsPListPath = Application.dataPath + "/../" + "BFVersions/ios/exports/dev/ExportOptions.plist";
|
||||
// static string releaseOptionsPListPath = Application.dataPath + "/../" + "BFVersions/ios/exports/release/ExportOptions.plist";
|
||||
// static string publishOptionsPListPath = Application.dataPath + "/../" + "BFVersions/ios/exports/dis/ExportOptions.plist";
|
||||
|
||||
public static bool BuildIOSPlayer(BuildInfo buildInfo)
|
||||
{
|
||||
var buildTarget = BuildTarget.iOS;
|
||||
// public static bool BuildIOSPlayer(BuildInfo buildInfo)
|
||||
// {
|
||||
// var buildTarget = BuildTarget.iOS;
|
||||
|
||||
// 检查平台
|
||||
if (EditorUserBuildSettings.activeBuildTarget != buildTarget)
|
||||
{
|
||||
Debug.LogError("[bferror]当前没有在对应平台");
|
||||
return false;
|
||||
}
|
||||
// // 检查平台
|
||||
// if (EditorUserBuildSettings.activeBuildTarget != buildTarget)
|
||||
// {
|
||||
// Debug.LogError("[bferror]当前没有在对应平台");
|
||||
// return false;
|
||||
// }
|
||||
|
||||
// 重新生成XLua
|
||||
CompileScriptsUtils.RegenerateXLuaCode(true);
|
||||
// // 重新生成XLua
|
||||
// CompileScriptsUtils.RegenerateXLuaCode(true);
|
||||
|
||||
// 打包设置
|
||||
BuildSettings(buildInfo);
|
||||
// // 打包设置
|
||||
// BuildSettings(buildInfo);
|
||||
|
||||
// 开始打包
|
||||
var bpOptions = GetBuildOptions(buildInfo);
|
||||
var report = BuildPipeline.BuildPlayer(bpOptions);
|
||||
if (report.summary.result == BuildResult.Succeeded)
|
||||
{
|
||||
return BuildIpaFromXCode(buildInfo);
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError("[bferror]unity打包xcode失败");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
// // 开始打包
|
||||
// var bpOptions = GetBuildOptions(buildInfo);
|
||||
// var report = BuildPipeline.BuildPlayer(bpOptions);
|
||||
// if (report.summary.result == BuildResult.Succeeded)
|
||||
// {
|
||||
// return BuildIpaFromXCode(buildInfo);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// Debug.LogError("[bferror]unity打包xcode失败");
|
||||
// return false;
|
||||
// }
|
||||
// }
|
||||
|
||||
/// <summary>
|
||||
/// 打包设置
|
||||
/// </summary>
|
||||
static void BuildSettings(BuildInfo buildInfo)
|
||||
{
|
||||
// 设置bundleVersion
|
||||
PlayerSettings.bundleVersion = buildInfo.version;
|
||||
// /// <summary>
|
||||
// /// 打包设置
|
||||
// /// </summary>
|
||||
// static void BuildSettings(BuildInfo buildInfo)
|
||||
// {
|
||||
// // 设置bundleVersion
|
||||
// PlayerSettings.bundleVersion = buildInfo.version;
|
||||
|
||||
// 设置buildNumber
|
||||
PlayerSettings.iOS.buildNumber = buildInfo.version_code.ToString();
|
||||
// // 设置buildNumber
|
||||
// PlayerSettings.iOS.buildNumber = buildInfo.versionCode.ToString();
|
||||
|
||||
// 设置竖屏
|
||||
PlayerSettings.defaultInterfaceOrientation = UIOrientation.Portrait;
|
||||
PlayerSettings.allowedAutorotateToPortrait = false;
|
||||
PlayerSettings.allowedAutorotateToPortraitUpsideDown = false;
|
||||
PlayerSettings.allowedAutorotateToLandscapeLeft = false;
|
||||
PlayerSettings.allowedAutorotateToLandscapeRight = false;
|
||||
// // 设置竖屏
|
||||
// PlayerSettings.defaultInterfaceOrientation = UIOrientation.Portrait;
|
||||
// PlayerSettings.allowedAutorotateToPortrait = false;
|
||||
// PlayerSettings.allowedAutorotateToPortraitUpsideDown = false;
|
||||
// PlayerSettings.allowedAutorotateToLandscapeLeft = false;
|
||||
// PlayerSettings.allowedAutorotateToLandscapeRight = false;
|
||||
|
||||
// 允许Xcode根据appleDeveloperTeamID自动签署应用程序
|
||||
PlayerSettings.iOS.appleEnableAutomaticSigning = !buildInfo.IsPublish();
|
||||
// // 允许Xcode根据appleDeveloperTeamID自动签署应用程序
|
||||
// PlayerSettings.iOS.appleEnableAutomaticSigning = !buildInfo.IsPublish();
|
||||
|
||||
// 使用手动签名时iOS资源调配配置文件的类型,自动
|
||||
PlayerSettings.iOS.iOSManualProvisioningProfileType = buildInfo.IsPublish() ? ProvisioningProfileType.Distribution : ProvisioningProfileType.Automatic;
|
||||
// // 使用手动签名时iOS资源调配配置文件的类型,自动
|
||||
// PlayerSettings.iOS.iOSManualProvisioningProfileType = buildInfo.IsPublish() ? ProvisioningProfileType.Distribution : ProvisioningProfileType.Automatic;
|
||||
|
||||
// 关闭启动动画
|
||||
PlayerSettings.SplashScreen.show = false;
|
||||
// // 关闭启动动画
|
||||
// PlayerSettings.SplashScreen.show = false;
|
||||
|
||||
// 设置包名
|
||||
PlayerSettings.SetApplicationIdentifier(BuildTargetGroup.iOS, buildInfo.bundleName);
|
||||
Debug.Log("[bfinfo]设置包名:" + buildInfo.bundleName);
|
||||
// // 设置包名
|
||||
// PlayerSettings.SetApplicationIdentifier(BuildTargetGroup.iOS, buildInfo.bundleName);
|
||||
// Debug.Log("[bfinfo]设置包名:" + buildInfo.bundleName);
|
||||
|
||||
// 是否跳过版本控制
|
||||
var symbols = IOS_DEFINE_SYMBOLS;
|
||||
if (buildInfo.skipVersion)
|
||||
{
|
||||
symbols = symbols + ";SKIP_VERSION;";
|
||||
}
|
||||
// // 是否跳过版本控制
|
||||
// var symbols = IOS_DEFINE_SYMBOLS;
|
||||
// if (buildInfo.skipVersion)
|
||||
// {
|
||||
// symbols = symbols + ";SKIP_VERSION;";
|
||||
// }
|
||||
|
||||
|
||||
PlayerSettings.SetScriptingDefineSymbolsForGroup(BuildTargetGroup.iOS, symbols);
|
||||
Debug.Log("[bfinfo]设置defineSymbols: " + symbols);
|
||||
// PlayerSettings.SetScriptingDefineSymbolsForGroup(BuildTargetGroup.iOS, symbols);
|
||||
// Debug.Log("[bfinfo]设置defineSymbols: " + symbols);
|
||||
|
||||
// 是否是dev
|
||||
var development = buildInfo.IsDevChannel();
|
||||
EditorUserBuildSettings.development = development;
|
||||
// // 是否是dev
|
||||
// var development = buildInfo.IsDevChannel();
|
||||
// EditorUserBuildSettings.development = development;
|
||||
|
||||
// 商品名称
|
||||
if (buildInfo.IsPublish())
|
||||
{
|
||||
PlayerSettings.productName = "Heroic Expedition";
|
||||
}
|
||||
else
|
||||
{
|
||||
PlayerSettings.productName = development ? "b6-dev" : "b6-release";
|
||||
}
|
||||
// // 商品名称
|
||||
// if (buildInfo.IsPublish())
|
||||
// {
|
||||
// PlayerSettings.productName = "Heroic Expedition";
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// PlayerSettings.productName = development ? "b6-dev" : "b6-release";
|
||||
// }
|
||||
|
||||
// BuildType设置dev/release
|
||||
EditorUserBuildSettings.iOSXcodeBuildConfig = development ? XcodeBuildConfig.Debug : XcodeBuildConfig.Release;
|
||||
// // BuildType设置dev/release
|
||||
// EditorUserBuildSettings.iOSXcodeBuildConfig = development ? XcodeBuildConfig.Debug : XcodeBuildConfig.Release;
|
||||
|
||||
// 使用IL2CPP
|
||||
var scriptImp = ScriptingImplementation.IL2CPP;
|
||||
PlayerSettings.SetScriptingBackend(BuildTargetGroup.iOS, scriptImp);
|
||||
// // 使用IL2CPP
|
||||
// var scriptImp = ScriptingImplementation.IL2CPP;
|
||||
// PlayerSettings.SetScriptingBackend(BuildTargetGroup.iOS, scriptImp);
|
||||
|
||||
// 目标平台架构,目前支持ARM64
|
||||
PlayerSettings.SetArchitecture(BuildTargetGroup.iOS, 1);
|
||||
}
|
||||
// // 目标平台架构,目前支持ARM64
|
||||
// PlayerSettings.SetArchitecture(BuildTargetGroup.iOS, 1);
|
||||
// }
|
||||
|
||||
/// <summary>
|
||||
/// 获取打包参数
|
||||
/// </summary>
|
||||
static BuildPlayerOptions GetBuildOptions(BuildInfo buildInfo)
|
||||
{
|
||||
var bpOptions = new BuildPlayerOptions();
|
||||
bpOptions.scenes = AssetBundleUtils.GetBuildScenes();
|
||||
bpOptions.target = BuildTarget.iOS;
|
||||
// /// <summary>
|
||||
// /// 获取打包参数
|
||||
// /// </summary>
|
||||
// static BuildPlayerOptions GetBuildOptions(BuildInfo buildInfo)
|
||||
// {
|
||||
// var bpOptions = new BuildPlayerOptions();
|
||||
// bpOptions.scenes = AssetBundleUtils.GetBuildScenes();
|
||||
// bpOptions.target = BuildTarget.iOS;
|
||||
|
||||
var path = buildInfo.IsReleaseChannel() ? RELEASE_XCODE_LOCAL_PATH : DEV_XCODE_LOCAL_PATH;
|
||||
bpOptions.locationPathName = path;
|
||||
Debug.Log("[bfinfo]xcode path : " + path);
|
||||
var absolutePath = buildInfo.IsReleaseChannel() ? releaseXCodePath : devXCodePath;
|
||||
if (Directory.Exists(absolutePath))
|
||||
{
|
||||
Directory.Delete(absolutePath, true);
|
||||
}
|
||||
// var path = buildInfo.IsReleaseChannel() ? RELEASE_XCODE_LOCAL_PATH : DEV_XCODE_LOCAL_PATH;
|
||||
// bpOptions.locationPathName = path;
|
||||
// Debug.Log("[bfinfo]xcode path : " + path);
|
||||
// var absolutePath = buildInfo.IsReleaseChannel() ? releaseXCodePath : devXCodePath;
|
||||
// if (Directory.Exists(absolutePath))
|
||||
// {
|
||||
// Directory.Delete(absolutePath, true);
|
||||
// }
|
||||
|
||||
if (!buildInfo.IsPublish())
|
||||
{
|
||||
var options = BuildOptions.Development | BuildOptions.ConnectWithProfiler | BuildOptions.AllowDebugging;
|
||||
bpOptions.options = options;
|
||||
}
|
||||
return bpOptions;
|
||||
}
|
||||
// if (!buildInfo.IsPublish())
|
||||
// {
|
||||
// var options = BuildOptions.Development | BuildOptions.ConnectWithProfiler | BuildOptions.AllowDebugging;
|
||||
// bpOptions.options = options;
|
||||
// }
|
||||
// return bpOptions;
|
||||
// }
|
||||
|
||||
/// <summary>
|
||||
/// 打包ipa
|
||||
/// </summary>
|
||||
static bool BuildIpaFromXCode(BuildInfo buildInfo)
|
||||
{
|
||||
// 修改XCode设置
|
||||
FixXCodeProject(buildInfo);
|
||||
// /// <summary>
|
||||
// /// 打包ipa
|
||||
// /// </summary>
|
||||
// static bool BuildIpaFromXCode(BuildInfo buildInfo)
|
||||
// {
|
||||
// // 修改XCode设置
|
||||
// FixXCodeProject(buildInfo);
|
||||
|
||||
// 权限
|
||||
UnlockKeyChain();
|
||||
// // 权限
|
||||
// UnlockKeyChain();
|
||||
|
||||
// archive
|
||||
if (!Archive(buildInfo))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
// // archive
|
||||
// if (!Archive(buildInfo))
|
||||
// {
|
||||
// return false;
|
||||
// }
|
||||
|
||||
// 导出ipa
|
||||
if (!ExportIpa(buildInfo))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
// // 导出ipa
|
||||
// if (!ExportIpa(buildInfo))
|
||||
// {
|
||||
// return false;
|
||||
// }
|
||||
|
||||
return true;
|
||||
}
|
||||
// return true;
|
||||
// }
|
||||
|
||||
/// <summary>
|
||||
/// xCode工程设置
|
||||
/// </summary>
|
||||
static void FixXCodeProject(BuildInfo buildInfo)
|
||||
{
|
||||
var isDev = buildInfo.IsDevChannel();
|
||||
var xCodeProjectPath = isDev ? devXCodePath : releaseXCodePath;
|
||||
// /// <summary>
|
||||
// /// xCode工程设置
|
||||
// /// </summary>
|
||||
// static void FixXCodeProject(BuildInfo buildInfo)
|
||||
// {
|
||||
// var isDev = buildInfo.IsDevChannel();
|
||||
// var xCodeProjectPath = isDev ? devXCodePath : releaseXCodePath;
|
||||
|
||||
var path = xCodeProjectPath + "/Unity-iPhone.xcodeproj/project.pbxproj";
|
||||
var pbxProject = new PBXProject();
|
||||
pbxProject.ReadFromFile(path);
|
||||
var targetGuid = pbxProject.TargetGuidByName("Unity-iPhone");
|
||||
pbxProject.AddBuildProperty(targetGuid, "OTHER_LDFLAGS", "-ObjC");
|
||||
pbxProject.SetBuildProperty(targetGuid, "ENABLE_BITCODE", "NO");
|
||||
pbxProject.SetBuildProperty(targetGuid, "ENABLE_BITCODE", "NO");
|
||||
pbxProject.SetBuildProperty(targetGuid, "DEVELOPMENT_TEAM", "49QQW8856Q");
|
||||
if (buildInfo.IsPublish())
|
||||
{
|
||||
pbxProject.SetBuildProperty(targetGuid, "PROVISIONING_PROFILE_SPECIFIER", "ub_appstore_dis");
|
||||
}
|
||||
// var path = xCodeProjectPath + "/Unity-iPhone.xcodeproj/project.pbxproj";
|
||||
// var pbxProject = new PBXProject();
|
||||
// pbxProject.ReadFromFile(path);
|
||||
// var targetGuid = pbxProject.TargetGuidByName("Unity-iPhone");
|
||||
// pbxProject.AddBuildProperty(targetGuid, "OTHER_LDFLAGS", "-ObjC");
|
||||
// pbxProject.SetBuildProperty(targetGuid, "ENABLE_BITCODE", "NO");
|
||||
// pbxProject.SetBuildProperty(targetGuid, "ENABLE_BITCODE", "NO");
|
||||
// pbxProject.SetBuildProperty(targetGuid, "DEVELOPMENT_TEAM", "49QQW8856Q");
|
||||
// if (buildInfo.IsPublish())
|
||||
// {
|
||||
// pbxProject.SetBuildProperty(targetGuid, "PROVISIONING_PROFILE_SPECIFIER", "ub_appstore_dis");
|
||||
// }
|
||||
|
||||
// 添加系统库
|
||||
AddSystemLibReferenceToProject(pbxProject, targetGuid, "libsqlite3.tbd");
|
||||
AddSystemLibReferenceToProject(pbxProject, targetGuid, "libz.1.tbd");
|
||||
AddSystemLibReferenceToProject(pbxProject, targetGuid, "libiconv.2.tbd");
|
||||
AddSystemLibReferenceToProject(pbxProject, targetGuid, "libresolv.9.tbd");
|
||||
// // 添加系统库
|
||||
// AddSystemLibReferenceToProject(pbxProject, targetGuid, "libsqlite3.tbd");
|
||||
// AddSystemLibReferenceToProject(pbxProject, targetGuid, "libz.1.tbd");
|
||||
// AddSystemLibReferenceToProject(pbxProject, targetGuid, "libiconv.2.tbd");
|
||||
// AddSystemLibReferenceToProject(pbxProject, targetGuid, "libresolv.9.tbd");
|
||||
|
||||
var pListPath = Path.Combine(xCodeProjectPath, "Info.plist");
|
||||
var pList = new PlistDocument();
|
||||
pList.ReadFromFile(pListPath);
|
||||
// var pListPath = Path.Combine(xCodeProjectPath, "Info.plist");
|
||||
// var pList = new PlistDocument();
|
||||
// pList.ReadFromFile(pListPath);
|
||||
|
||||
// 版本号
|
||||
var vKey = "CFBundleShortVersionString";
|
||||
var vValue = new PlistElementString(buildInfo.version);
|
||||
var pListRoot = pList.root;
|
||||
var rootDict = pListRoot.values;
|
||||
if (!rootDict.ContainsKey(vKey))
|
||||
{
|
||||
rootDict.Add(vKey, vValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
rootDict[vKey] = vValue;
|
||||
}
|
||||
// // 版本号
|
||||
// var vKey = "CFBundleShortVersionString";
|
||||
// var vValue = new PlistElementString(buildInfo.version);
|
||||
// var pListRoot = pList.root;
|
||||
// var rootDict = pListRoot.values;
|
||||
// if (!rootDict.ContainsKey(vKey))
|
||||
// {
|
||||
// rootDict.Add(vKey, vValue);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// rootDict[vKey] = vValue;
|
||||
// }
|
||||
|
||||
// VersionCode
|
||||
var vCodeKey = "CFBundleVersion";
|
||||
var vCodeValue = new PlistElementString(buildInfo.version_code.ToString());
|
||||
if (!rootDict.ContainsKey(vCodeKey))
|
||||
{
|
||||
rootDict.Add(vCodeKey, vCodeValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
rootDict[vCodeKey] = vCodeValue;
|
||||
}
|
||||
// // VersionCode
|
||||
// var vCodeKey = "CFBundleVersion";
|
||||
// var vCodeValue = new PlistElementString(buildInfo.versionCode.ToString());
|
||||
// if (!rootDict.ContainsKey(vCodeKey))
|
||||
// {
|
||||
// rootDict.Add(vCodeKey, vCodeValue);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// rootDict[vCodeKey] = vCodeValue;
|
||||
// }
|
||||
|
||||
// 数美SDK会使用位置,必须加入这个说明
|
||||
var localtionKey = "NSLocationWhenInUseUsageDescription";
|
||||
var localtionValue = new PlistElementString("We use your location to give you a better localization.");
|
||||
if (!rootDict.ContainsKey(localtionKey))
|
||||
{
|
||||
rootDict.Add(localtionKey, localtionValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
rootDict[localtionKey] = localtionValue;
|
||||
}
|
||||
// // 数美SDK会使用位置,必须加入这个说明
|
||||
// var localtionKey = "NSLocationWhenInUseUsageDescription";
|
||||
// var localtionValue = new PlistElementString("We use your location to give you a better localization.");
|
||||
// if (!rootDict.ContainsKey(localtionKey))
|
||||
// {
|
||||
// rootDict.Add(localtionKey, localtionValue);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// rootDict[localtionKey] = localtionValue;
|
||||
// }
|
||||
|
||||
// 提审提示缺少出口合规证明,这里直接设置为false即可
|
||||
var encryptionKey = "ITSAppUsesNonExemptEncryption";
|
||||
var encryptionValue = new PlistElementBoolean(false);
|
||||
if (!rootDict.ContainsKey(encryptionKey))
|
||||
{
|
||||
rootDict.Add(encryptionKey, encryptionValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
rootDict[encryptionKey] = encryptionValue;
|
||||
}
|
||||
// // 提审提示缺少出口合规证明,这里直接设置为false即可
|
||||
// var encryptionKey = "ITSAppUsesNonExemptEncryption";
|
||||
// var encryptionValue = new PlistElementBoolean(false);
|
||||
// if (!rootDict.ContainsKey(encryptionKey))
|
||||
// {
|
||||
// rootDict.Add(encryptionKey, encryptionValue);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// rootDict[encryptionKey] = encryptionValue;
|
||||
// }
|
||||
|
||||
pList.WriteToFile(pListPath);
|
||||
pbxProject.WriteToFile(path);
|
||||
}
|
||||
// pList.WriteToFile(pListPath);
|
||||
// pbxProject.WriteToFile(path);
|
||||
// }
|
||||
|
||||
//添加系统lib方法
|
||||
static void AddSystemLibReferenceToProject(PBXProject pbxProject, string targetGuid, string lib)
|
||||
{
|
||||
var fileGuid = pbxProject.AddFile("usr/lib/" + lib, "Frameworks/" + lib, PBXSourceTree.Sdk);
|
||||
pbxProject.AddFileToBuild(targetGuid, fileGuid);
|
||||
}
|
||||
// //添加系统lib方法
|
||||
// static void AddSystemLibReferenceToProject(PBXProject pbxProject, string targetGuid, string lib)
|
||||
// {
|
||||
// var fileGuid = pbxProject.AddFile("usr/lib/" + lib, "Frameworks/" + lib, PBXSourceTree.Sdk);
|
||||
// pbxProject.AddFileToBuild(targetGuid, fileGuid);
|
||||
// }
|
||||
|
||||
/// <summary>
|
||||
/// Archive
|
||||
/// </summary>
|
||||
static bool Archive(BuildInfo buildInfo)
|
||||
{
|
||||
Debug.Log("[bfinfo]正在archive...");
|
||||
var result = true;
|
||||
var xCodeProjectPath = buildInfo.IsDevChannel() ? devXCodePath : releaseXCodePath;
|
||||
var archivePath = xCodeProjectPath + "/build/archive/Unity-iPhone.xcarchive";
|
||||
var args = string.Format("archive -scheme Unity-iPhone -configuration Release -archivePath {0}", archivePath);
|
||||
BFEditorUtils.RunCommond("xcodebuild", args, xCodeProjectPath,
|
||||
(info) =>
|
||||
{
|
||||
Debug.Log(info);
|
||||
},
|
||||
(error) =>
|
||||
{
|
||||
if (error.Contains("ARCHIVE FAILED")) // 失败标志
|
||||
{
|
||||
result = false;
|
||||
}
|
||||
Debug.LogError("[bferror] " + error);
|
||||
}
|
||||
);
|
||||
// /// <summary>
|
||||
// /// Archive
|
||||
// /// </summary>
|
||||
// static bool Archive(BuildInfo buildInfo)
|
||||
// {
|
||||
// Debug.Log("[bfinfo]正在archive...");
|
||||
// var result = true;
|
||||
// var xCodeProjectPath = buildInfo.IsDevChannel() ? devXCodePath : releaseXCodePath;
|
||||
// var archivePath = xCodeProjectPath + "/build/archive/Unity-iPhone.xcarchive";
|
||||
// var args = string.Format("archive -scheme Unity-iPhone -configuration Release -archivePath {0}", archivePath);
|
||||
// BFEditorUtils.RunCommond("xcodebuild", args, xCodeProjectPath,
|
||||
// (info) =>
|
||||
// {
|
||||
// Debug.Log(info);
|
||||
// },
|
||||
// (error) =>
|
||||
// {
|
||||
// if (error.Contains("ARCHIVE FAILED")) // 失败标志
|
||||
// {
|
||||
// result = false;
|
||||
// }
|
||||
// Debug.LogError("[bferror] " + error);
|
||||
// }
|
||||
// );
|
||||
|
||||
return result;
|
||||
}
|
||||
// return result;
|
||||
// }
|
||||
|
||||
/// <summary>
|
||||
/// 导出ipa
|
||||
/// </summary>
|
||||
static bool ExportIpa(BuildInfo buildInfo)
|
||||
{
|
||||
Debug.Log("[bfinfo]正在导出ipa...");
|
||||
var result = false;
|
||||
var xCodeProjectPath = buildInfo.IsDevChannel() ? devXCodePath : releaseXCodePath;
|
||||
string exportPListPath;
|
||||
if (buildInfo.IsPublish())
|
||||
{
|
||||
exportPListPath = publishOptionsPListPath;
|
||||
}
|
||||
else
|
||||
{
|
||||
exportPListPath = buildInfo.IsDevChannel() ? devOptionsPListPath : releaseOptionsPListPath;
|
||||
}
|
||||
var ipaPath = xCodeProjectPath + "/build/ipa";
|
||||
var archivePath = xCodeProjectPath + "/build/archive/Unity-iPhone.xcarchive";
|
||||
var args = string.Format("-exportArchive -archivePath {0} -exportPath {1} -exportOptionsPlist {2} -allowProvisioningUpdates", archivePath, ipaPath, exportPListPath);
|
||||
BFEditorUtils.RunCommond("xcodebuild", args, null,
|
||||
(info) =>
|
||||
{
|
||||
if(info.Contains("EXPORT SUCCEEDED"))
|
||||
{
|
||||
result = true;
|
||||
}
|
||||
},
|
||||
(error) =>
|
||||
{
|
||||
}
|
||||
);
|
||||
// /// <summary>
|
||||
// /// 导出ipa
|
||||
// /// </summary>
|
||||
// static bool ExportIpa(BuildInfo buildInfo)
|
||||
// {
|
||||
// Debug.Log("[bfinfo]正在导出ipa...");
|
||||
// var result = false;
|
||||
// var xCodeProjectPath = buildInfo.IsDevChannel() ? devXCodePath : releaseXCodePath;
|
||||
// string exportPListPath;
|
||||
// if (buildInfo.IsPublish())
|
||||
// {
|
||||
// exportPListPath = publishOptionsPListPath;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// exportPListPath = buildInfo.IsDevChannel() ? devOptionsPListPath : releaseOptionsPListPath;
|
||||
// }
|
||||
// var ipaPath = xCodeProjectPath + "/build/ipa";
|
||||
// var archivePath = xCodeProjectPath + "/build/archive/Unity-iPhone.xcarchive";
|
||||
// var args = string.Format("-exportArchive -archivePath {0} -exportPath {1} -exportOptionsPlist {2} -allowProvisioningUpdates", archivePath, ipaPath, exportPListPath);
|
||||
// BFEditorUtils.RunCommond("xcodebuild", args, null,
|
||||
// (info) =>
|
||||
// {
|
||||
// if(info.Contains("EXPORT SUCCEEDED"))
|
||||
// {
|
||||
// result = true;
|
||||
// }
|
||||
// },
|
||||
// (error) =>
|
||||
// {
|
||||
// }
|
||||
// );
|
||||
|
||||
return result;
|
||||
}
|
||||
// return result;
|
||||
// }
|
||||
|
||||
/// <summary>
|
||||
/// 远程打包签名ipa时需要钥匙串权限
|
||||
/// </summary>
|
||||
static void UnlockKeyChain()
|
||||
{
|
||||
BFEditorUtils.RunCommond("security", "-v unlock-keychain -p '123456' /Users/aoddabao/Library/Keychains/login.keychain-db", null,
|
||||
(msg) =>
|
||||
{
|
||||
Debug.Log(msg);
|
||||
},
|
||||
(msg) =>
|
||||
{
|
||||
Debug.LogError(msg);
|
||||
}
|
||||
);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
// /// <summary>
|
||||
// /// 远程打包签名ipa时需要钥匙串权限
|
||||
// /// </summary>
|
||||
// static void UnlockKeyChain()
|
||||
// {
|
||||
// BFEditorUtils.RunCommond("security", "-v unlock-keychain -p '123456' /Users/aoddabao/Library/Keychains/login.keychain-db", null,
|
||||
// (msg) =>
|
||||
// {
|
||||
// Debug.Log(msg);
|
||||
// },
|
||||
// (msg) =>
|
||||
// {
|
||||
// Debug.LogError(msg);
|
||||
// }
|
||||
// );
|
||||
// }
|
||||
// #endif
|
||||
// }
|
||||
// }
|
||||
|
||||
@ -690,6 +690,8 @@ namespace BFEditor
|
||||
new List<string>(){"Spine.Unity.SpineHandles", "DrawReferenceRect", "Spine.Unity.SkeletonGraphic", "UnityEngine.Color"},
|
||||
new List<string>(){"Spine.Unity.SkeletonGraphic", "EditReferenceRect"},
|
||||
new List<string>(){"Spine.Unity.SkeletonGraphic", "RectTransformSize"},
|
||||
new List<string>(){"Spine.Unity.SkeletonGraphic", "GetPivotOffset"},
|
||||
new List<string>(){"Spine.Unity.SkeletonGraphic", "GetScaledPivotOffset"},
|
||||
};
|
||||
|
||||
static bool hasGenericParameter(Type type)
|
||||
|
||||
@ -42,7 +42,7 @@ namespace BF
|
||||
// 渠道对应的语言配置
|
||||
public static Dictionary<string, BFLanguageInfo> languageInfos = new Dictionary<string, BFLanguageInfo>()
|
||||
{
|
||||
{"com.juzu.b6.dev", new BFLanguageInfo(new List<string>{"en", "cn", "zh", "th", "ru", "id", "vi"})},
|
||||
{"com.c1.dev.android", new BFLanguageInfo(new List<string>{"en", "cn", "zh", "th", "ru", "id", "vi"})},
|
||||
{"com.juzu.b6.dev.android", new BFLanguageInfo(new List<string>{"en", "cn", "zh", "th", "ru", "id", "vi"})},
|
||||
{"com.juzu.b6.dev.ios", new BFLanguageInfo(new List<string>{"en", "cn"})},
|
||||
{"com.juzu.b6.release.android", new BFLanguageInfo(new List<string>{"en"})},
|
||||
|
||||
208
Assets/XLua/Gen/BF_BattleControlBgWrap.cs
Normal file
208
Assets/XLua/Gen/BF_BattleControlBgWrap.cs
Normal file
@ -0,0 +1,208 @@
|
||||
#if USE_UNI_LUA
|
||||
using LuaAPI = UniLua.Lua;
|
||||
using RealStatePtr = UniLua.ILuaState;
|
||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||
#else
|
||||
using LuaAPI = XLua.LuaDLL.Lua;
|
||||
using RealStatePtr = System.IntPtr;
|
||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||
#endif
|
||||
|
||||
using XLua;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace XLua.CSObjectWrap
|
||||
{
|
||||
using Utils = XLua.Utils;
|
||||
public class BFBattleControlBgWrap
|
||||
{
|
||||
public static void __Register(RealStatePtr L)
|
||||
{
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
System.Type type = typeof(BF.BattleControlBg);
|
||||
Utils.BeginObjectRegister(type, L, translator, 0, 0, 4, 4);
|
||||
|
||||
|
||||
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "speed", _g_get_speed);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "endX", _g_get_endX);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "resetX", _g_get_resetX);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "type", _g_get_type);
|
||||
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "speed", _s_set_speed);
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "endX", _s_set_endX);
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "resetX", _s_set_resetX);
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "type", _s_set_type);
|
||||
|
||||
|
||||
Utils.EndObjectRegister(type, L, translator, null, null,
|
||||
null, null, null);
|
||||
|
||||
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Utils.EndClassRegister(type, L, translator);
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int __CreateInstance(RealStatePtr L)
|
||||
{
|
||||
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
if(LuaAPI.lua_gettop(L) == 1)
|
||||
{
|
||||
|
||||
var gen_ret = new BF.BattleControlBg();
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
}
|
||||
catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return LuaAPI.luaL_error(L, "invalid arguments to BF.BattleControlBg constructor!");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_speed(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
BF.BattleControlBg gen_to_be_invoked = (BF.BattleControlBg)translator.FastGetCSObj(L, 1);
|
||||
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.speed);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_endX(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
BF.BattleControlBg gen_to_be_invoked = (BF.BattleControlBg)translator.FastGetCSObj(L, 1);
|
||||
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.endX);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_resetX(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
BF.BattleControlBg gen_to_be_invoked = (BF.BattleControlBg)translator.FastGetCSObj(L, 1);
|
||||
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.resetX);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_type(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
BF.BattleControlBg gen_to_be_invoked = (BF.BattleControlBg)translator.FastGetCSObj(L, 1);
|
||||
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.type);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _s_set_speed(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
BF.BattleControlBg gen_to_be_invoked = (BF.BattleControlBg)translator.FastGetCSObj(L, 1);
|
||||
gen_to_be_invoked.speed = (float)LuaAPI.lua_tonumber(L, 2);
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _s_set_endX(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
BF.BattleControlBg gen_to_be_invoked = (BF.BattleControlBg)translator.FastGetCSObj(L, 1);
|
||||
gen_to_be_invoked.endX = (float)LuaAPI.lua_tonumber(L, 2);
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _s_set_resetX(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
BF.BattleControlBg gen_to_be_invoked = (BF.BattleControlBg)translator.FastGetCSObj(L, 1);
|
||||
gen_to_be_invoked.resetX = (float)LuaAPI.lua_tonumber(L, 2);
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _s_set_type(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
BF.BattleControlBg gen_to_be_invoked = (BF.BattleControlBg)translator.FastGetCSObj(L, 1);
|
||||
gen_to_be_invoked.type = LuaAPI.xlua_tointeger(L, 2);
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@ -21,7 +21,7 @@ namespace XLua.CSObjectWrap
|
||||
{
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
System.Type type = typeof(Spine.Unity.SkeletonGraphic);
|
||||
Utils.BeginObjectRegister(type, L, translator, 0, 35, 44, 28);
|
||||
Utils.BeginObjectRegister(type, L, translator, 0, 33, 44, 28);
|
||||
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Rebuild", _m_Rebuild);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update);
|
||||
@ -44,8 +44,6 @@ namespace XLua.CSObjectWrap
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateMesh", _m_UpdateMesh);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateMeshToInstructions", _m_UpdateMeshToInstructions);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasMultipleSubmeshInstructions", _m_HasMultipleSubmeshInstructions);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPivotOffset", _m_GetPivotOffset);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetScaledPivotOffset", _m_GetScaledPivotOffset);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetScaledPivotOffset", _m_SetScaledPivotOffset);
|
||||
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "AssignMeshOverrideSingleRenderer", _e_AssignMeshOverrideSingleRenderer);
|
||||
@ -873,62 +871,6 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_GetPivotOffset(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1);
|
||||
|
||||
|
||||
|
||||
{
|
||||
|
||||
var gen_ret = gen_to_be_invoked.GetPivotOffset( );
|
||||
translator.PushUnityEngineVector2(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_GetScaledPivotOffset(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1);
|
||||
|
||||
|
||||
|
||||
{
|
||||
|
||||
var gen_ret = gen_to_be_invoked.GetScaledPivotOffset( );
|
||||
translator.PushUnityEngineVector2(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
@ -24,6 +24,9 @@ namespace XLua.CSObjectWrap
|
||||
Utils.BeginObjectRegister(type, L, translator, 1, 11, 5, 5);
|
||||
Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta);
|
||||
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Contains", _m_Contains);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SqrDistance", _m_SqrDistance);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClosestPoint", _m_ClosestPoint);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMinMax", _m_SetMinMax);
|
||||
@ -32,9 +35,6 @@ namespace XLua.CSObjectWrap
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Intersects", _m_Intersects);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IntersectRay", _m_IntersectRay);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Contains", _m_Contains);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SqrDistance", _m_SqrDistance);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClosestPoint", _m_ClosestPoint);
|
||||
|
||||
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "center", _g_get_center);
|
||||
@ -127,6 +127,99 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_Contains(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
UnityEngine.Bounds gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||
|
||||
|
||||
|
||||
{
|
||||
UnityEngine.Vector3 _point;translator.Get(L, 2, out _point);
|
||||
|
||||
var gen_ret = gen_to_be_invoked.Contains( _point );
|
||||
LuaAPI.lua_pushboolean(L, gen_ret);
|
||||
|
||||
|
||||
translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked);
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_SqrDistance(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
UnityEngine.Bounds gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||
|
||||
|
||||
|
||||
{
|
||||
UnityEngine.Vector3 _point;translator.Get(L, 2, out _point);
|
||||
|
||||
var gen_ret = gen_to_be_invoked.SqrDistance( _point );
|
||||
LuaAPI.lua_pushnumber(L, gen_ret);
|
||||
|
||||
|
||||
translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked);
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_ClosestPoint(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
UnityEngine.Bounds gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||
|
||||
|
||||
|
||||
{
|
||||
UnityEngine.Vector3 _point;translator.Get(L, 2, out _point);
|
||||
|
||||
var gen_ret = gen_to_be_invoked.ClosestPoint( _point );
|
||||
translator.PushUnityEngineVector3(L, gen_ret);
|
||||
|
||||
|
||||
translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked);
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_GetHashCode(RealStatePtr L)
|
||||
{
|
||||
@ -471,99 +564,6 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_Contains(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
UnityEngine.Bounds gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||
|
||||
|
||||
|
||||
{
|
||||
UnityEngine.Vector3 _point;translator.Get(L, 2, out _point);
|
||||
|
||||
var gen_ret = gen_to_be_invoked.Contains( _point );
|
||||
LuaAPI.lua_pushboolean(L, gen_ret);
|
||||
|
||||
|
||||
translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked);
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_SqrDistance(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
UnityEngine.Bounds gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||
|
||||
|
||||
|
||||
{
|
||||
UnityEngine.Vector3 _point;translator.Get(L, 2, out _point);
|
||||
|
||||
var gen_ret = gen_to_be_invoked.SqrDistance( _point );
|
||||
LuaAPI.lua_pushnumber(L, gen_ret);
|
||||
|
||||
|
||||
translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked);
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_ClosestPoint(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
UnityEngine.Bounds gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||
|
||||
|
||||
|
||||
{
|
||||
UnityEngine.Vector3 _point;translator.Get(L, 2, out _point);
|
||||
|
||||
var gen_ret = gen_to_be_invoked.ClosestPoint( _point );
|
||||
translator.PushUnityEngineVector3(L, gen_ret);
|
||||
|
||||
|
||||
translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked);
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -32,10 +32,7 @@ namespace XLua.CSObjectWrap
|
||||
null, null, null);
|
||||
|
||||
Utils.BeginClassRegister(type, L, __CreateInstance, 31, 6, 1);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "ClearRandomWriteTargets", _m_ClearRandomWriteTargets_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "ExecuteCommandBuffer", _m_ExecuteCommandBuffer_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "ExecuteCommandBufferAsync", _m_ExecuteCommandBufferAsync_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "SetRenderTarget", _m_SetRenderTarget_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "SetRenderTarget", _m_SetRenderTarget_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "SetRandomWriteTarget", _m_SetRandomWriteTarget_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "CopyTexture", _m_CopyTexture_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "ConvertTexture", _m_ConvertTexture_xlua_st_);
|
||||
@ -62,15 +59,18 @@ namespace XLua.CSObjectWrap
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "DrawProceduralIndirect", _m_DrawProceduralIndirect_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "Blit", _m_Blit_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "BlitMultiTap", _m_BlitMultiTap_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "ClearRandomWriteTargets", _m_ClearRandomWriteTargets_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "ExecuteCommandBuffer", _m_ExecuteCommandBuffer_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "ExecuteCommandBufferAsync", _m_ExecuteCommandBufferAsync_xlua_st_);
|
||||
|
||||
|
||||
|
||||
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "activeColorGamut", _g_get_activeColorGamut);
|
||||
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "activeColorBuffer", _g_get_activeColorBuffer);
|
||||
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "activeDepthBuffer", _g_get_activeDepthBuffer);
|
||||
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "activeColorGamut", _g_get_activeColorGamut);
|
||||
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "activeTier", _g_get_activeTier);
|
||||
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "preserveFramebufferAlpha", _g_get_preserveFramebufferAlpha);
|
||||
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "minOpenGLESVersion", _g_get_minOpenGLESVersion);
|
||||
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "activeColorBuffer", _g_get_activeColorBuffer);
|
||||
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "activeDepthBuffer", _g_get_activeDepthBuffer);
|
||||
|
||||
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "activeTier", _s_set_activeTier);
|
||||
|
||||
@ -108,82 +108,6 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_ClearRandomWriteTargets_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
|
||||
UnityEngine.Graphics.ClearRandomWriteTargets( );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_ExecuteCommandBuffer_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
UnityEngine.Rendering.CommandBuffer _buffer = (UnityEngine.Rendering.CommandBuffer)translator.GetObject(L, 1, typeof(UnityEngine.Rendering.CommandBuffer));
|
||||
|
||||
UnityEngine.Graphics.ExecuteCommandBuffer( _buffer );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_ExecuteCommandBufferAsync_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
UnityEngine.Rendering.CommandBuffer _buffer = (UnityEngine.Rendering.CommandBuffer)translator.GetObject(L, 1, typeof(UnityEngine.Rendering.CommandBuffer));
|
||||
UnityEngine.Rendering.ComputeQueueType _queueType;translator.Get(L, 2, out _queueType);
|
||||
|
||||
UnityEngine.Graphics.ExecuteCommandBufferAsync( _buffer, _queueType );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_SetRenderTarget_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
@ -3735,9 +3659,109 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_ClearRandomWriteTargets_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
|
||||
UnityEngine.Graphics.ClearRandomWriteTargets( );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_ExecuteCommandBuffer_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
UnityEngine.Rendering.CommandBuffer _buffer = (UnityEngine.Rendering.CommandBuffer)translator.GetObject(L, 1, typeof(UnityEngine.Rendering.CommandBuffer));
|
||||
|
||||
UnityEngine.Graphics.ExecuteCommandBuffer( _buffer );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_ExecuteCommandBufferAsync_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
UnityEngine.Rendering.CommandBuffer _buffer = (UnityEngine.Rendering.CommandBuffer)translator.GetObject(L, 1, typeof(UnityEngine.Rendering.CommandBuffer));
|
||||
UnityEngine.Rendering.ComputeQueueType _queueType;translator.Get(L, 2, out _queueType);
|
||||
|
||||
UnityEngine.Graphics.ExecuteCommandBufferAsync( _buffer, _queueType );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_activeColorBuffer(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
translator.Push(L, UnityEngine.Graphics.activeColorBuffer);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_activeDepthBuffer(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
translator.Push(L, UnityEngine.Graphics.activeDepthBuffer);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_activeColorGamut(RealStatePtr L)
|
||||
{
|
||||
@ -3786,30 +3810,6 @@ namespace XLua.CSObjectWrap
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_activeColorBuffer(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
translator.Push(L, UnityEngine.Graphics.activeColorBuffer);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_activeDepthBuffer(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
translator.Push(L, UnityEngine.Graphics.activeDepthBuffer);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -32,16 +32,7 @@ namespace XLua.CSObjectWrap
|
||||
null, null, null);
|
||||
|
||||
Utils.BeginClassRegister(type, L, __CreateInstance, 54, 0, 0);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "ClosestPowerOfTwo", _m_ClosestPowerOfTwo_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "IsPowerOfTwo", _m_IsPowerOfTwo_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "NextPowerOfTwo", _m_NextPowerOfTwo_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "GammaToLinearSpace", _m_GammaToLinearSpace_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "LinearToGammaSpace", _m_LinearToGammaSpace_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "CorrelatedColorTemperatureToRGB", _m_CorrelatedColorTemperatureToRGB_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "FloatToHalf", _m_FloatToHalf_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "HalfToFloat", _m_HalfToFloat_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "PerlinNoise", _m_PerlinNoise_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "Sin", _m_Sin_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "Sin", _m_Sin_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "Cos", _m_Cos_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "Tan", _m_Tan_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "Asin", _m_Asin_xlua_st_);
|
||||
@ -79,6 +70,15 @@ namespace XLua.CSObjectWrap
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "PingPong", _m_PingPong_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "InverseLerp", _m_InverseLerp_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "DeltaAngle", _m_DeltaAngle_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "ClosestPowerOfTwo", _m_ClosestPowerOfTwo_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "IsPowerOfTwo", _m_IsPowerOfTwo_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "NextPowerOfTwo", _m_NextPowerOfTwo_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "GammaToLinearSpace", _m_GammaToLinearSpace_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "LinearToGammaSpace", _m_LinearToGammaSpace_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "CorrelatedColorTemperatureToRGB", _m_CorrelatedColorTemperatureToRGB_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "FloatToHalf", _m_FloatToHalf_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "HalfToFloat", _m_HalfToFloat_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "PerlinNoise", _m_PerlinNoise_xlua_st_);
|
||||
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "PI", UnityEngine.Mathf.PI);
|
||||
@ -122,234 +122,6 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_ClosestPowerOfTwo_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
int _value = LuaAPI.xlua_tointeger(L, 1);
|
||||
|
||||
var gen_ret = UnityEngine.Mathf.ClosestPowerOfTwo( _value );
|
||||
LuaAPI.xlua_pushinteger(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_IsPowerOfTwo_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
int _value = LuaAPI.xlua_tointeger(L, 1);
|
||||
|
||||
var gen_ret = UnityEngine.Mathf.IsPowerOfTwo( _value );
|
||||
LuaAPI.lua_pushboolean(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_NextPowerOfTwo_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
int _value = LuaAPI.xlua_tointeger(L, 1);
|
||||
|
||||
var gen_ret = UnityEngine.Mathf.NextPowerOfTwo( _value );
|
||||
LuaAPI.xlua_pushinteger(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_GammaToLinearSpace_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
float _value = (float)LuaAPI.lua_tonumber(L, 1);
|
||||
|
||||
var gen_ret = UnityEngine.Mathf.GammaToLinearSpace( _value );
|
||||
LuaAPI.lua_pushnumber(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_LinearToGammaSpace_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
float _value = (float)LuaAPI.lua_tonumber(L, 1);
|
||||
|
||||
var gen_ret = UnityEngine.Mathf.LinearToGammaSpace( _value );
|
||||
LuaAPI.lua_pushnumber(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_CorrelatedColorTemperatureToRGB_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
float _kelvin = (float)LuaAPI.lua_tonumber(L, 1);
|
||||
|
||||
var gen_ret = UnityEngine.Mathf.CorrelatedColorTemperatureToRGB( _kelvin );
|
||||
translator.PushUnityEngineColor(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_FloatToHalf_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
float _val = (float)LuaAPI.lua_tonumber(L, 1);
|
||||
|
||||
var gen_ret = UnityEngine.Mathf.FloatToHalf( _val );
|
||||
LuaAPI.xlua_pushinteger(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_HalfToFloat_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
ushort _val = (ushort)LuaAPI.xlua_tointeger(L, 1);
|
||||
|
||||
var gen_ret = UnityEngine.Mathf.HalfToFloat( _val );
|
||||
LuaAPI.lua_pushnumber(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_PerlinNoise_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
float _x = (float)LuaAPI.lua_tonumber(L, 1);
|
||||
float _y = (float)LuaAPI.lua_tonumber(L, 2);
|
||||
|
||||
var gen_ret = UnityEngine.Mathf.PerlinNoise( _x, _y );
|
||||
LuaAPI.lua_pushnumber(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_Sin_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
@ -1542,6 +1314,234 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_ClosestPowerOfTwo_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
int _value = LuaAPI.xlua_tointeger(L, 1);
|
||||
|
||||
var gen_ret = UnityEngine.Mathf.ClosestPowerOfTwo( _value );
|
||||
LuaAPI.xlua_pushinteger(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_IsPowerOfTwo_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
int _value = LuaAPI.xlua_tointeger(L, 1);
|
||||
|
||||
var gen_ret = UnityEngine.Mathf.IsPowerOfTwo( _value );
|
||||
LuaAPI.lua_pushboolean(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_NextPowerOfTwo_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
int _value = LuaAPI.xlua_tointeger(L, 1);
|
||||
|
||||
var gen_ret = UnityEngine.Mathf.NextPowerOfTwo( _value );
|
||||
LuaAPI.xlua_pushinteger(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_GammaToLinearSpace_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
float _value = (float)LuaAPI.lua_tonumber(L, 1);
|
||||
|
||||
var gen_ret = UnityEngine.Mathf.GammaToLinearSpace( _value );
|
||||
LuaAPI.lua_pushnumber(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_LinearToGammaSpace_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
float _value = (float)LuaAPI.lua_tonumber(L, 1);
|
||||
|
||||
var gen_ret = UnityEngine.Mathf.LinearToGammaSpace( _value );
|
||||
LuaAPI.lua_pushnumber(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_CorrelatedColorTemperatureToRGB_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
float _kelvin = (float)LuaAPI.lua_tonumber(L, 1);
|
||||
|
||||
var gen_ret = UnityEngine.Mathf.CorrelatedColorTemperatureToRGB( _kelvin );
|
||||
translator.PushUnityEngineColor(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_FloatToHalf_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
float _val = (float)LuaAPI.lua_tonumber(L, 1);
|
||||
|
||||
var gen_ret = UnityEngine.Mathf.FloatToHalf( _val );
|
||||
LuaAPI.xlua_pushinteger(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_HalfToFloat_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
ushort _val = (ushort)LuaAPI.xlua_tointeger(L, 1);
|
||||
|
||||
var gen_ret = UnityEngine.Mathf.HalfToFloat( _val );
|
||||
LuaAPI.lua_pushnumber(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_PerlinNoise_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
float _x = (float)LuaAPI.lua_tonumber(L, 1);
|
||||
float _y = (float)LuaAPI.lua_tonumber(L, 2);
|
||||
|
||||
var gen_ret = UnityEngine.Mathf.PerlinNoise( _x, _y );
|
||||
LuaAPI.lua_pushnumber(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -53,7 +53,12 @@ namespace XLua.CSObjectWrap
|
||||
null, null, null);
|
||||
|
||||
Utils.BeginClassRegister(type, L, __CreateInstance, 15, 1, 0);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "FromToRotation", _m_FromToRotation_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "Dot", _m_Dot_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "Angle", _m_Angle_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "Euler", _m_Euler_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "RotateTowards", _m_RotateTowards_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "Normalize", _m_Normalize_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "FromToRotation", _m_FromToRotation_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "Inverse", _m_Inverse_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "Slerp", _m_Slerp_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "SlerpUnclamped", _m_SlerpUnclamped_xlua_st_);
|
||||
@ -61,11 +66,6 @@ namespace XLua.CSObjectWrap
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "LerpUnclamped", _m_LerpUnclamped_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "AngleAxis", _m_AngleAxis_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "LookRotation", _m_LookRotation_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "Dot", _m_Dot_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "Angle", _m_Angle_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "Euler", _m_Euler_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "RotateTowards", _m_RotateTowards_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "Normalize", _m_Normalize_xlua_st_);
|
||||
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "kEpsilon", UnityEngine.Quaternion.kEpsilon);
|
||||
@ -231,248 +231,6 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_FromToRotation_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
UnityEngine.Vector3 _fromDirection;translator.Get(L, 1, out _fromDirection);
|
||||
UnityEngine.Vector3 _toDirection;translator.Get(L, 2, out _toDirection);
|
||||
|
||||
var gen_ret = UnityEngine.Quaternion.FromToRotation( _fromDirection, _toDirection );
|
||||
translator.PushUnityEngineQuaternion(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_Inverse_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
UnityEngine.Quaternion _rotation;translator.Get(L, 1, out _rotation);
|
||||
|
||||
var gen_ret = UnityEngine.Quaternion.Inverse( _rotation );
|
||||
translator.PushUnityEngineQuaternion(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_Slerp_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
UnityEngine.Quaternion _a;translator.Get(L, 1, out _a);
|
||||
UnityEngine.Quaternion _b;translator.Get(L, 2, out _b);
|
||||
float _t = (float)LuaAPI.lua_tonumber(L, 3);
|
||||
|
||||
var gen_ret = UnityEngine.Quaternion.Slerp( _a, _b, _t );
|
||||
translator.PushUnityEngineQuaternion(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_SlerpUnclamped_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
UnityEngine.Quaternion _a;translator.Get(L, 1, out _a);
|
||||
UnityEngine.Quaternion _b;translator.Get(L, 2, out _b);
|
||||
float _t = (float)LuaAPI.lua_tonumber(L, 3);
|
||||
|
||||
var gen_ret = UnityEngine.Quaternion.SlerpUnclamped( _a, _b, _t );
|
||||
translator.PushUnityEngineQuaternion(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_Lerp_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
UnityEngine.Quaternion _a;translator.Get(L, 1, out _a);
|
||||
UnityEngine.Quaternion _b;translator.Get(L, 2, out _b);
|
||||
float _t = (float)LuaAPI.lua_tonumber(L, 3);
|
||||
|
||||
var gen_ret = UnityEngine.Quaternion.Lerp( _a, _b, _t );
|
||||
translator.PushUnityEngineQuaternion(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_LerpUnclamped_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
UnityEngine.Quaternion _a;translator.Get(L, 1, out _a);
|
||||
UnityEngine.Quaternion _b;translator.Get(L, 2, out _b);
|
||||
float _t = (float)LuaAPI.lua_tonumber(L, 3);
|
||||
|
||||
var gen_ret = UnityEngine.Quaternion.LerpUnclamped( _a, _b, _t );
|
||||
translator.PushUnityEngineQuaternion(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_AngleAxis_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
float _angle = (float)LuaAPI.lua_tonumber(L, 1);
|
||||
UnityEngine.Vector3 _axis;translator.Get(L, 2, out _axis);
|
||||
|
||||
var gen_ret = UnityEngine.Quaternion.AngleAxis( _angle, _axis );
|
||||
translator.PushUnityEngineQuaternion(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_LookRotation_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
int gen_param_count = LuaAPI.lua_gettop(L);
|
||||
|
||||
if(gen_param_count == 1&& translator.Assignable<UnityEngine.Vector3>(L, 1))
|
||||
{
|
||||
UnityEngine.Vector3 _forward;translator.Get(L, 1, out _forward);
|
||||
|
||||
var gen_ret = UnityEngine.Quaternion.LookRotation( _forward );
|
||||
translator.PushUnityEngineQuaternion(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 2&& translator.Assignable<UnityEngine.Vector3>(L, 1)&& translator.Assignable<UnityEngine.Vector3>(L, 2))
|
||||
{
|
||||
UnityEngine.Vector3 _forward;translator.Get(L, 1, out _forward);
|
||||
UnityEngine.Vector3 _upwards;translator.Get(L, 2, out _upwards);
|
||||
|
||||
var gen_ret = UnityEngine.Quaternion.LookRotation( _forward, _upwards );
|
||||
translator.PushUnityEngineQuaternion(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Quaternion.LookRotation!");
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_Set(RealStatePtr L)
|
||||
{
|
||||
@ -943,6 +701,248 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_FromToRotation_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
UnityEngine.Vector3 _fromDirection;translator.Get(L, 1, out _fromDirection);
|
||||
UnityEngine.Vector3 _toDirection;translator.Get(L, 2, out _toDirection);
|
||||
|
||||
var gen_ret = UnityEngine.Quaternion.FromToRotation( _fromDirection, _toDirection );
|
||||
translator.PushUnityEngineQuaternion(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_Inverse_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
UnityEngine.Quaternion _rotation;translator.Get(L, 1, out _rotation);
|
||||
|
||||
var gen_ret = UnityEngine.Quaternion.Inverse( _rotation );
|
||||
translator.PushUnityEngineQuaternion(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_Slerp_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
UnityEngine.Quaternion _a;translator.Get(L, 1, out _a);
|
||||
UnityEngine.Quaternion _b;translator.Get(L, 2, out _b);
|
||||
float _t = (float)LuaAPI.lua_tonumber(L, 3);
|
||||
|
||||
var gen_ret = UnityEngine.Quaternion.Slerp( _a, _b, _t );
|
||||
translator.PushUnityEngineQuaternion(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_SlerpUnclamped_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
UnityEngine.Quaternion _a;translator.Get(L, 1, out _a);
|
||||
UnityEngine.Quaternion _b;translator.Get(L, 2, out _b);
|
||||
float _t = (float)LuaAPI.lua_tonumber(L, 3);
|
||||
|
||||
var gen_ret = UnityEngine.Quaternion.SlerpUnclamped( _a, _b, _t );
|
||||
translator.PushUnityEngineQuaternion(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_Lerp_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
UnityEngine.Quaternion _a;translator.Get(L, 1, out _a);
|
||||
UnityEngine.Quaternion _b;translator.Get(L, 2, out _b);
|
||||
float _t = (float)LuaAPI.lua_tonumber(L, 3);
|
||||
|
||||
var gen_ret = UnityEngine.Quaternion.Lerp( _a, _b, _t );
|
||||
translator.PushUnityEngineQuaternion(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_LerpUnclamped_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
UnityEngine.Quaternion _a;translator.Get(L, 1, out _a);
|
||||
UnityEngine.Quaternion _b;translator.Get(L, 2, out _b);
|
||||
float _t = (float)LuaAPI.lua_tonumber(L, 3);
|
||||
|
||||
var gen_ret = UnityEngine.Quaternion.LerpUnclamped( _a, _b, _t );
|
||||
translator.PushUnityEngineQuaternion(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_AngleAxis_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
float _angle = (float)LuaAPI.lua_tonumber(L, 1);
|
||||
UnityEngine.Vector3 _axis;translator.Get(L, 2, out _axis);
|
||||
|
||||
var gen_ret = UnityEngine.Quaternion.AngleAxis( _angle, _axis );
|
||||
translator.PushUnityEngineQuaternion(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_LookRotation_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
int gen_param_count = LuaAPI.lua_gettop(L);
|
||||
|
||||
if(gen_param_count == 1&& translator.Assignable<UnityEngine.Vector3>(L, 1))
|
||||
{
|
||||
UnityEngine.Vector3 _forward;translator.Get(L, 1, out _forward);
|
||||
|
||||
var gen_ret = UnityEngine.Quaternion.LookRotation( _forward );
|
||||
translator.PushUnityEngineQuaternion(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 2&& translator.Assignable<UnityEngine.Vector3>(L, 1)&& translator.Assignable<UnityEngine.Vector3>(L, 2))
|
||||
{
|
||||
UnityEngine.Vector3 _forward;translator.Get(L, 1, out _forward);
|
||||
UnityEngine.Vector3 _upwards;translator.Get(L, 2, out _upwards);
|
||||
|
||||
var gen_ret = UnityEngine.Quaternion.LookRotation( _forward, _upwards );
|
||||
translator.PushUnityEngineQuaternion(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Quaternion.LookRotation!");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -34,7 +34,8 @@ namespace XLua.CSObjectWrap
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ConvertToEquirect", _m_ConvertToEquirect);
|
||||
|
||||
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "width", _g_get_width);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "descriptor", _g_get_descriptor);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "width", _g_get_width);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "height", _g_get_height);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "dimension", _g_get_dimension);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "graphicsFormat", _g_get_graphicsFormat);
|
||||
@ -55,9 +56,9 @@ namespace XLua.CSObjectWrap
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "colorBuffer", _g_get_colorBuffer);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "depthBuffer", _g_get_depthBuffer);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "depth", _g_get_depth);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "descriptor", _g_get_descriptor);
|
||||
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "width", _s_set_width);
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "descriptor", _s_set_descriptor);
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "width", _s_set_width);
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "height", _s_set_height);
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "dimension", _s_set_dimension);
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "graphicsFormat", _s_set_graphicsFormat);
|
||||
@ -75,16 +76,15 @@ namespace XLua.CSObjectWrap
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "useDynamicScale", _s_set_useDynamicScale);
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "isPowerOfTwo", _s_set_isPowerOfTwo);
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "depth", _s_set_depth);
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "descriptor", _s_set_descriptor);
|
||||
|
||||
|
||||
Utils.EndObjectRegister(type, L, translator, null, null,
|
||||
null, null, null);
|
||||
|
||||
Utils.BeginClassRegister(type, L, __CreateInstance, 4, 1, 1);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "SupportsStencil", _m_SupportsStencil_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetTemporary", _m_GetTemporary_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "SupportsStencil", _m_SupportsStencil_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "ReleaseTemporary", _m_ReleaseTemporary_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetTemporary", _m_GetTemporary_xlua_st_);
|
||||
|
||||
|
||||
|
||||
@ -247,6 +247,241 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_GetTemporary_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
int gen_param_count = LuaAPI.lua_gettop(L);
|
||||
|
||||
if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
|
||||
{
|
||||
int _width = LuaAPI.xlua_tointeger(L, 1);
|
||||
int _height = LuaAPI.xlua_tointeger(L, 2);
|
||||
|
||||
var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
|
||||
{
|
||||
int _width = LuaAPI.xlua_tointeger(L, 1);
|
||||
int _height = LuaAPI.xlua_tointeger(L, 2);
|
||||
int _depthBuffer = LuaAPI.xlua_tointeger(L, 3);
|
||||
|
||||
var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 1&& translator.Assignable<UnityEngine.RenderTextureDescriptor>(L, 1))
|
||||
{
|
||||
UnityEngine.RenderTextureDescriptor _desc;translator.Get(L, 1, out _desc);
|
||||
|
||||
var gen_ret = UnityEngine.RenderTexture.GetTemporary( _desc );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<UnityEngine.Experimental.Rendering.GraphicsFormat>(L, 4))
|
||||
{
|
||||
int _width = LuaAPI.xlua_tointeger(L, 1);
|
||||
int _height = LuaAPI.xlua_tointeger(L, 2);
|
||||
int _depthBuffer = LuaAPI.xlua_tointeger(L, 3);
|
||||
UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 4, out _format);
|
||||
|
||||
var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer, _format );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<UnityEngine.RenderTextureFormat>(L, 4))
|
||||
{
|
||||
int _width = LuaAPI.xlua_tointeger(L, 1);
|
||||
int _height = LuaAPI.xlua_tointeger(L, 2);
|
||||
int _depthBuffer = LuaAPI.xlua_tointeger(L, 3);
|
||||
UnityEngine.RenderTextureFormat _format;translator.Get(L, 4, out _format);
|
||||
|
||||
var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer, _format );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<UnityEngine.Experimental.Rendering.GraphicsFormat>(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5))
|
||||
{
|
||||
int _width = LuaAPI.xlua_tointeger(L, 1);
|
||||
int _height = LuaAPI.xlua_tointeger(L, 2);
|
||||
int _depthBuffer = LuaAPI.xlua_tointeger(L, 3);
|
||||
UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 4, out _format);
|
||||
int _antiAliasing = LuaAPI.xlua_tointeger(L, 5);
|
||||
|
||||
var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer, _format, _antiAliasing );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<UnityEngine.RenderTextureFormat>(L, 4)&& translator.Assignable<UnityEngine.RenderTextureReadWrite>(L, 5))
|
||||
{
|
||||
int _width = LuaAPI.xlua_tointeger(L, 1);
|
||||
int _height = LuaAPI.xlua_tointeger(L, 2);
|
||||
int _depthBuffer = LuaAPI.xlua_tointeger(L, 3);
|
||||
UnityEngine.RenderTextureFormat _format;translator.Get(L, 4, out _format);
|
||||
UnityEngine.RenderTextureReadWrite _readWrite;translator.Get(L, 5, out _readWrite);
|
||||
|
||||
var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer, _format, _readWrite );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<UnityEngine.Experimental.Rendering.GraphicsFormat>(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable<UnityEngine.RenderTextureMemoryless>(L, 6))
|
||||
{
|
||||
int _width = LuaAPI.xlua_tointeger(L, 1);
|
||||
int _height = LuaAPI.xlua_tointeger(L, 2);
|
||||
int _depthBuffer = LuaAPI.xlua_tointeger(L, 3);
|
||||
UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 4, out _format);
|
||||
int _antiAliasing = LuaAPI.xlua_tointeger(L, 5);
|
||||
UnityEngine.RenderTextureMemoryless _memorylessMode;translator.Get(L, 6, out _memorylessMode);
|
||||
|
||||
var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer, _format, _antiAliasing, _memorylessMode );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<UnityEngine.RenderTextureFormat>(L, 4)&& translator.Assignable<UnityEngine.RenderTextureReadWrite>(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6))
|
||||
{
|
||||
int _width = LuaAPI.xlua_tointeger(L, 1);
|
||||
int _height = LuaAPI.xlua_tointeger(L, 2);
|
||||
int _depthBuffer = LuaAPI.xlua_tointeger(L, 3);
|
||||
UnityEngine.RenderTextureFormat _format;translator.Get(L, 4, out _format);
|
||||
UnityEngine.RenderTextureReadWrite _readWrite;translator.Get(L, 5, out _readWrite);
|
||||
int _antiAliasing = LuaAPI.xlua_tointeger(L, 6);
|
||||
|
||||
var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer, _format, _readWrite, _antiAliasing );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 7&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<UnityEngine.Experimental.Rendering.GraphicsFormat>(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable<UnityEngine.RenderTextureMemoryless>(L, 6)&& translator.Assignable<UnityEngine.VRTextureUsage>(L, 7))
|
||||
{
|
||||
int _width = LuaAPI.xlua_tointeger(L, 1);
|
||||
int _height = LuaAPI.xlua_tointeger(L, 2);
|
||||
int _depthBuffer = LuaAPI.xlua_tointeger(L, 3);
|
||||
UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 4, out _format);
|
||||
int _antiAliasing = LuaAPI.xlua_tointeger(L, 5);
|
||||
UnityEngine.RenderTextureMemoryless _memorylessMode;translator.Get(L, 6, out _memorylessMode);
|
||||
UnityEngine.VRTextureUsage _vrUsage;translator.Get(L, 7, out _vrUsage);
|
||||
|
||||
var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer, _format, _antiAliasing, _memorylessMode, _vrUsage );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 7&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<UnityEngine.RenderTextureFormat>(L, 4)&& translator.Assignable<UnityEngine.RenderTextureReadWrite>(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable<UnityEngine.RenderTextureMemoryless>(L, 7))
|
||||
{
|
||||
int _width = LuaAPI.xlua_tointeger(L, 1);
|
||||
int _height = LuaAPI.xlua_tointeger(L, 2);
|
||||
int _depthBuffer = LuaAPI.xlua_tointeger(L, 3);
|
||||
UnityEngine.RenderTextureFormat _format;translator.Get(L, 4, out _format);
|
||||
UnityEngine.RenderTextureReadWrite _readWrite;translator.Get(L, 5, out _readWrite);
|
||||
int _antiAliasing = LuaAPI.xlua_tointeger(L, 6);
|
||||
UnityEngine.RenderTextureMemoryless _memorylessMode;translator.Get(L, 7, out _memorylessMode);
|
||||
|
||||
var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer, _format, _readWrite, _antiAliasing, _memorylessMode );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 8&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<UnityEngine.Experimental.Rendering.GraphicsFormat>(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable<UnityEngine.RenderTextureMemoryless>(L, 6)&& translator.Assignable<UnityEngine.VRTextureUsage>(L, 7)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 8))
|
||||
{
|
||||
int _width = LuaAPI.xlua_tointeger(L, 1);
|
||||
int _height = LuaAPI.xlua_tointeger(L, 2);
|
||||
int _depthBuffer = LuaAPI.xlua_tointeger(L, 3);
|
||||
UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 4, out _format);
|
||||
int _antiAliasing = LuaAPI.xlua_tointeger(L, 5);
|
||||
UnityEngine.RenderTextureMemoryless _memorylessMode;translator.Get(L, 6, out _memorylessMode);
|
||||
UnityEngine.VRTextureUsage _vrUsage;translator.Get(L, 7, out _vrUsage);
|
||||
bool _useDynamicScale = LuaAPI.lua_toboolean(L, 8);
|
||||
|
||||
var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer, _format, _antiAliasing, _memorylessMode, _vrUsage, _useDynamicScale );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 8&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<UnityEngine.RenderTextureFormat>(L, 4)&& translator.Assignable<UnityEngine.RenderTextureReadWrite>(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable<UnityEngine.RenderTextureMemoryless>(L, 7)&& translator.Assignable<UnityEngine.VRTextureUsage>(L, 8))
|
||||
{
|
||||
int _width = LuaAPI.xlua_tointeger(L, 1);
|
||||
int _height = LuaAPI.xlua_tointeger(L, 2);
|
||||
int _depthBuffer = LuaAPI.xlua_tointeger(L, 3);
|
||||
UnityEngine.RenderTextureFormat _format;translator.Get(L, 4, out _format);
|
||||
UnityEngine.RenderTextureReadWrite _readWrite;translator.Get(L, 5, out _readWrite);
|
||||
int _antiAliasing = LuaAPI.xlua_tointeger(L, 6);
|
||||
UnityEngine.RenderTextureMemoryless _memorylessMode;translator.Get(L, 7, out _memorylessMode);
|
||||
UnityEngine.VRTextureUsage _vrUsage;translator.Get(L, 8, out _vrUsage);
|
||||
|
||||
var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer, _format, _readWrite, _antiAliasing, _memorylessMode, _vrUsage );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 9&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<UnityEngine.RenderTextureFormat>(L, 4)&& translator.Assignable<UnityEngine.RenderTextureReadWrite>(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable<UnityEngine.RenderTextureMemoryless>(L, 7)&& translator.Assignable<UnityEngine.VRTextureUsage>(L, 8)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 9))
|
||||
{
|
||||
int _width = LuaAPI.xlua_tointeger(L, 1);
|
||||
int _height = LuaAPI.xlua_tointeger(L, 2);
|
||||
int _depthBuffer = LuaAPI.xlua_tointeger(L, 3);
|
||||
UnityEngine.RenderTextureFormat _format;translator.Get(L, 4, out _format);
|
||||
UnityEngine.RenderTextureReadWrite _readWrite;translator.Get(L, 5, out _readWrite);
|
||||
int _antiAliasing = LuaAPI.xlua_tointeger(L, 6);
|
||||
UnityEngine.RenderTextureMemoryless _memorylessMode;translator.Get(L, 7, out _memorylessMode);
|
||||
UnityEngine.VRTextureUsage _vrUsage;translator.Get(L, 8, out _vrUsage);
|
||||
bool _useDynamicScale = LuaAPI.lua_toboolean(L, 9);
|
||||
|
||||
var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer, _format, _readWrite, _antiAliasing, _memorylessMode, _vrUsage, _useDynamicScale );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RenderTexture.GetTemporary!");
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_GetNativeDepthBufferPtr(RealStatePtr L)
|
||||
{
|
||||
@ -592,244 +827,23 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_GetTemporary_xlua_st_(RealStatePtr L)
|
||||
static int _g_get_descriptor(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
int gen_param_count = LuaAPI.lua_gettop(L);
|
||||
|
||||
if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
|
||||
{
|
||||
int _width = LuaAPI.xlua_tointeger(L, 1);
|
||||
int _height = LuaAPI.xlua_tointeger(L, 2);
|
||||
|
||||
var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
|
||||
{
|
||||
int _width = LuaAPI.xlua_tointeger(L, 1);
|
||||
int _height = LuaAPI.xlua_tointeger(L, 2);
|
||||
int _depthBuffer = LuaAPI.xlua_tointeger(L, 3);
|
||||
|
||||
var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 1&& translator.Assignable<UnityEngine.RenderTextureDescriptor>(L, 1))
|
||||
{
|
||||
UnityEngine.RenderTextureDescriptor _desc;translator.Get(L, 1, out _desc);
|
||||
|
||||
var gen_ret = UnityEngine.RenderTexture.GetTemporary( _desc );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<UnityEngine.Experimental.Rendering.GraphicsFormat>(L, 4))
|
||||
{
|
||||
int _width = LuaAPI.xlua_tointeger(L, 1);
|
||||
int _height = LuaAPI.xlua_tointeger(L, 2);
|
||||
int _depthBuffer = LuaAPI.xlua_tointeger(L, 3);
|
||||
UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 4, out _format);
|
||||
|
||||
var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer, _format );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<UnityEngine.RenderTextureFormat>(L, 4))
|
||||
{
|
||||
int _width = LuaAPI.xlua_tointeger(L, 1);
|
||||
int _height = LuaAPI.xlua_tointeger(L, 2);
|
||||
int _depthBuffer = LuaAPI.xlua_tointeger(L, 3);
|
||||
UnityEngine.RenderTextureFormat _format;translator.Get(L, 4, out _format);
|
||||
|
||||
var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer, _format );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<UnityEngine.Experimental.Rendering.GraphicsFormat>(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5))
|
||||
{
|
||||
int _width = LuaAPI.xlua_tointeger(L, 1);
|
||||
int _height = LuaAPI.xlua_tointeger(L, 2);
|
||||
int _depthBuffer = LuaAPI.xlua_tointeger(L, 3);
|
||||
UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 4, out _format);
|
||||
int _antiAliasing = LuaAPI.xlua_tointeger(L, 5);
|
||||
|
||||
var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer, _format, _antiAliasing );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<UnityEngine.RenderTextureFormat>(L, 4)&& translator.Assignable<UnityEngine.RenderTextureReadWrite>(L, 5))
|
||||
{
|
||||
int _width = LuaAPI.xlua_tointeger(L, 1);
|
||||
int _height = LuaAPI.xlua_tointeger(L, 2);
|
||||
int _depthBuffer = LuaAPI.xlua_tointeger(L, 3);
|
||||
UnityEngine.RenderTextureFormat _format;translator.Get(L, 4, out _format);
|
||||
UnityEngine.RenderTextureReadWrite _readWrite;translator.Get(L, 5, out _readWrite);
|
||||
|
||||
var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer, _format, _readWrite );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<UnityEngine.Experimental.Rendering.GraphicsFormat>(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable<UnityEngine.RenderTextureMemoryless>(L, 6))
|
||||
{
|
||||
int _width = LuaAPI.xlua_tointeger(L, 1);
|
||||
int _height = LuaAPI.xlua_tointeger(L, 2);
|
||||
int _depthBuffer = LuaAPI.xlua_tointeger(L, 3);
|
||||
UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 4, out _format);
|
||||
int _antiAliasing = LuaAPI.xlua_tointeger(L, 5);
|
||||
UnityEngine.RenderTextureMemoryless _memorylessMode;translator.Get(L, 6, out _memorylessMode);
|
||||
|
||||
var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer, _format, _antiAliasing, _memorylessMode );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<UnityEngine.RenderTextureFormat>(L, 4)&& translator.Assignable<UnityEngine.RenderTextureReadWrite>(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6))
|
||||
{
|
||||
int _width = LuaAPI.xlua_tointeger(L, 1);
|
||||
int _height = LuaAPI.xlua_tointeger(L, 2);
|
||||
int _depthBuffer = LuaAPI.xlua_tointeger(L, 3);
|
||||
UnityEngine.RenderTextureFormat _format;translator.Get(L, 4, out _format);
|
||||
UnityEngine.RenderTextureReadWrite _readWrite;translator.Get(L, 5, out _readWrite);
|
||||
int _antiAliasing = LuaAPI.xlua_tointeger(L, 6);
|
||||
|
||||
var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer, _format, _readWrite, _antiAliasing );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 7&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<UnityEngine.Experimental.Rendering.GraphicsFormat>(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable<UnityEngine.RenderTextureMemoryless>(L, 6)&& translator.Assignable<UnityEngine.VRTextureUsage>(L, 7))
|
||||
{
|
||||
int _width = LuaAPI.xlua_tointeger(L, 1);
|
||||
int _height = LuaAPI.xlua_tointeger(L, 2);
|
||||
int _depthBuffer = LuaAPI.xlua_tointeger(L, 3);
|
||||
UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 4, out _format);
|
||||
int _antiAliasing = LuaAPI.xlua_tointeger(L, 5);
|
||||
UnityEngine.RenderTextureMemoryless _memorylessMode;translator.Get(L, 6, out _memorylessMode);
|
||||
UnityEngine.VRTextureUsage _vrUsage;translator.Get(L, 7, out _vrUsage);
|
||||
|
||||
var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer, _format, _antiAliasing, _memorylessMode, _vrUsage );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 7&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<UnityEngine.RenderTextureFormat>(L, 4)&& translator.Assignable<UnityEngine.RenderTextureReadWrite>(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable<UnityEngine.RenderTextureMemoryless>(L, 7))
|
||||
{
|
||||
int _width = LuaAPI.xlua_tointeger(L, 1);
|
||||
int _height = LuaAPI.xlua_tointeger(L, 2);
|
||||
int _depthBuffer = LuaAPI.xlua_tointeger(L, 3);
|
||||
UnityEngine.RenderTextureFormat _format;translator.Get(L, 4, out _format);
|
||||
UnityEngine.RenderTextureReadWrite _readWrite;translator.Get(L, 5, out _readWrite);
|
||||
int _antiAliasing = LuaAPI.xlua_tointeger(L, 6);
|
||||
UnityEngine.RenderTextureMemoryless _memorylessMode;translator.Get(L, 7, out _memorylessMode);
|
||||
|
||||
var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer, _format, _readWrite, _antiAliasing, _memorylessMode );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 8&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<UnityEngine.Experimental.Rendering.GraphicsFormat>(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable<UnityEngine.RenderTextureMemoryless>(L, 6)&& translator.Assignable<UnityEngine.VRTextureUsage>(L, 7)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 8))
|
||||
{
|
||||
int _width = LuaAPI.xlua_tointeger(L, 1);
|
||||
int _height = LuaAPI.xlua_tointeger(L, 2);
|
||||
int _depthBuffer = LuaAPI.xlua_tointeger(L, 3);
|
||||
UnityEngine.Experimental.Rendering.GraphicsFormat _format;translator.Get(L, 4, out _format);
|
||||
int _antiAliasing = LuaAPI.xlua_tointeger(L, 5);
|
||||
UnityEngine.RenderTextureMemoryless _memorylessMode;translator.Get(L, 6, out _memorylessMode);
|
||||
UnityEngine.VRTextureUsage _vrUsage;translator.Get(L, 7, out _vrUsage);
|
||||
bool _useDynamicScale = LuaAPI.lua_toboolean(L, 8);
|
||||
|
||||
var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer, _format, _antiAliasing, _memorylessMode, _vrUsage, _useDynamicScale );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 8&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<UnityEngine.RenderTextureFormat>(L, 4)&& translator.Assignable<UnityEngine.RenderTextureReadWrite>(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable<UnityEngine.RenderTextureMemoryless>(L, 7)&& translator.Assignable<UnityEngine.VRTextureUsage>(L, 8))
|
||||
{
|
||||
int _width = LuaAPI.xlua_tointeger(L, 1);
|
||||
int _height = LuaAPI.xlua_tointeger(L, 2);
|
||||
int _depthBuffer = LuaAPI.xlua_tointeger(L, 3);
|
||||
UnityEngine.RenderTextureFormat _format;translator.Get(L, 4, out _format);
|
||||
UnityEngine.RenderTextureReadWrite _readWrite;translator.Get(L, 5, out _readWrite);
|
||||
int _antiAliasing = LuaAPI.xlua_tointeger(L, 6);
|
||||
UnityEngine.RenderTextureMemoryless _memorylessMode;translator.Get(L, 7, out _memorylessMode);
|
||||
UnityEngine.VRTextureUsage _vrUsage;translator.Get(L, 8, out _vrUsage);
|
||||
|
||||
var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer, _format, _readWrite, _antiAliasing, _memorylessMode, _vrUsage );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 9&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<UnityEngine.RenderTextureFormat>(L, 4)&& translator.Assignable<UnityEngine.RenderTextureReadWrite>(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)&& translator.Assignable<UnityEngine.RenderTextureMemoryless>(L, 7)&& translator.Assignable<UnityEngine.VRTextureUsage>(L, 8)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 9))
|
||||
{
|
||||
int _width = LuaAPI.xlua_tointeger(L, 1);
|
||||
int _height = LuaAPI.xlua_tointeger(L, 2);
|
||||
int _depthBuffer = LuaAPI.xlua_tointeger(L, 3);
|
||||
UnityEngine.RenderTextureFormat _format;translator.Get(L, 4, out _format);
|
||||
UnityEngine.RenderTextureReadWrite _readWrite;translator.Get(L, 5, out _readWrite);
|
||||
int _antiAliasing = LuaAPI.xlua_tointeger(L, 6);
|
||||
UnityEngine.RenderTextureMemoryless _memorylessMode;translator.Get(L, 7, out _memorylessMode);
|
||||
UnityEngine.VRTextureUsage _vrUsage;translator.Get(L, 8, out _vrUsage);
|
||||
bool _useDynamicScale = LuaAPI.lua_toboolean(L, 9);
|
||||
|
||||
var gen_ret = UnityEngine.RenderTexture.GetTemporary( _width, _height, _depthBuffer, _format, _readWrite, _antiAliasing, _memorylessMode, _vrUsage, _useDynamicScale );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1);
|
||||
translator.Push(L, gen_to_be_invoked.descriptor);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RenderTexture.GetTemporary!");
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_width(RealStatePtr L)
|
||||
{
|
||||
@ -1136,22 +1150,24 @@ namespace XLua.CSObjectWrap
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_descriptor(RealStatePtr L)
|
||||
static int _s_set_descriptor(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1);
|
||||
translator.Push(L, gen_to_be_invoked.descriptor);
|
||||
UnityEngine.RenderTextureDescriptor gen_value;translator.Get(L, 2, out gen_value);
|
||||
gen_to_be_invoked.descriptor = gen_value;
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _s_set_width(RealStatePtr L)
|
||||
{
|
||||
@ -1442,22 +1458,6 @@ namespace XLua.CSObjectWrap
|
||||
return 0;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _s_set_descriptor(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
UnityEngine.RenderTexture gen_to_be_invoked = (UnityEngine.RenderTexture)translator.FastGetCSObj(L, 1);
|
||||
UnityEngine.RenderTextureDescriptor gen_value;translator.Get(L, 2, out gen_value);
|
||||
gen_to_be_invoked.descriptor = gen_value;
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -23,11 +23,11 @@ namespace XLua.CSObjectWrap
|
||||
System.Type type = typeof(UnityEngine.ShaderVariantCollection);
|
||||
Utils.BeginObjectRegister(type, L, translator, 0, 5, 3, 0);
|
||||
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "WarmUp", _m_WarmUp);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Add", _m_Add);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Remove", _m_Remove);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Contains", _m_Contains);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "WarmUp", _m_WarmUp);
|
||||
|
||||
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "shaderCount", _g_get_shaderCount);
|
||||
@ -79,60 +79,6 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_Clear(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
UnityEngine.ShaderVariantCollection gen_to_be_invoked = (UnityEngine.ShaderVariantCollection)translator.FastGetCSObj(L, 1);
|
||||
|
||||
|
||||
|
||||
{
|
||||
|
||||
gen_to_be_invoked.Clear( );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_WarmUp(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
UnityEngine.ShaderVariantCollection gen_to_be_invoked = (UnityEngine.ShaderVariantCollection)translator.FastGetCSObj(L, 1);
|
||||
|
||||
|
||||
|
||||
{
|
||||
|
||||
gen_to_be_invoked.WarmUp( );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_Add(RealStatePtr L)
|
||||
{
|
||||
@ -220,6 +166,60 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_Clear(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
UnityEngine.ShaderVariantCollection gen_to_be_invoked = (UnityEngine.ShaderVariantCollection)translator.FastGetCSObj(L, 1);
|
||||
|
||||
|
||||
|
||||
{
|
||||
|
||||
gen_to_be_invoked.Clear( );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_WarmUp(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
UnityEngine.ShaderVariantCollection gen_to_be_invoked = (UnityEngine.ShaderVariantCollection)translator.FastGetCSObj(L, 1);
|
||||
|
||||
|
||||
|
||||
{
|
||||
|
||||
gen_to_be_invoked.WarmUp( );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -23,15 +23,6 @@ namespace XLua.CSObjectWrap
|
||||
System.Type type = typeof(UnityEngine.Texture2D);
|
||||
Utils.BeginObjectRegister(type, L, translator, 0, 18, 12, 3);
|
||||
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Compress", _m_Compress);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearRequestedMipmapLevel", _m_ClearRequestedMipmapLevel);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsRequestedMipmapLevelLoaded", _m_IsRequestedMipmapLevelLoaded);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearMinimumMipmapLevel", _m_ClearMinimumMipmapLevel);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateExternalTexture", _m_UpdateExternalTexture);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRawTextureData", _m_GetRawTextureData);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPixels", _m_GetPixels);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPixels32", _m_GetPixels32);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "PackTextures", _m_PackTextures);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPixel", _m_SetPixel);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPixels", _m_SetPixels);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPixel", _m_GetPixel);
|
||||
@ -41,6 +32,15 @@ namespace XLua.CSObjectWrap
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Reinitialize", _m_Reinitialize);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ReadPixels", _m_ReadPixels);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPixels32", _m_SetPixels32);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPixels", _m_GetPixels);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Compress", _m_Compress);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearRequestedMipmapLevel", _m_ClearRequestedMipmapLevel);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsRequestedMipmapLevelLoaded", _m_IsRequestedMipmapLevelLoaded);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearMinimumMipmapLevel", _m_ClearMinimumMipmapLevel);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateExternalTexture", _m_UpdateExternalTexture);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRawTextureData", _m_GetRawTextureData);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPixels32", _m_GetPixels32);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "PackTextures", _m_PackTextures);
|
||||
|
||||
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "format", _g_get_format);
|
||||
@ -189,348 +189,6 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_Compress(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1);
|
||||
|
||||
|
||||
|
||||
{
|
||||
bool _highQuality = LuaAPI.lua_toboolean(L, 2);
|
||||
|
||||
gen_to_be_invoked.Compress( _highQuality );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_ClearRequestedMipmapLevel(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1);
|
||||
|
||||
|
||||
|
||||
{
|
||||
|
||||
gen_to_be_invoked.ClearRequestedMipmapLevel( );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_IsRequestedMipmapLevelLoaded(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1);
|
||||
|
||||
|
||||
|
||||
{
|
||||
|
||||
var gen_ret = gen_to_be_invoked.IsRequestedMipmapLevelLoaded( );
|
||||
LuaAPI.lua_pushboolean(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_ClearMinimumMipmapLevel(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1);
|
||||
|
||||
|
||||
|
||||
{
|
||||
|
||||
gen_to_be_invoked.ClearMinimumMipmapLevel( );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_UpdateExternalTexture(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1);
|
||||
|
||||
|
||||
|
||||
{
|
||||
System.IntPtr _nativeTex = LuaAPI.lua_touserdata(L, 2);
|
||||
|
||||
gen_to_be_invoked.UpdateExternalTexture( _nativeTex );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_GetRawTextureData(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1);
|
||||
|
||||
|
||||
|
||||
{
|
||||
|
||||
var gen_ret = gen_to_be_invoked.GetRawTextureData( );
|
||||
LuaAPI.lua_pushstring(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_GetPixels(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1);
|
||||
|
||||
|
||||
int gen_param_count = LuaAPI.lua_gettop(L);
|
||||
|
||||
if(gen_param_count == 1)
|
||||
{
|
||||
|
||||
var gen_ret = gen_to_be_invoked.GetPixels( );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
|
||||
{
|
||||
int _miplevel = LuaAPI.xlua_tointeger(L, 2);
|
||||
|
||||
var gen_ret = gen_to_be_invoked.GetPixels( _miplevel );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5))
|
||||
{
|
||||
int _x = LuaAPI.xlua_tointeger(L, 2);
|
||||
int _y = LuaAPI.xlua_tointeger(L, 3);
|
||||
int _blockWidth = LuaAPI.xlua_tointeger(L, 4);
|
||||
int _blockHeight = LuaAPI.xlua_tointeger(L, 5);
|
||||
|
||||
var gen_ret = gen_to_be_invoked.GetPixels( _x, _y, _blockWidth, _blockHeight );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6))
|
||||
{
|
||||
int _x = LuaAPI.xlua_tointeger(L, 2);
|
||||
int _y = LuaAPI.xlua_tointeger(L, 3);
|
||||
int _blockWidth = LuaAPI.xlua_tointeger(L, 4);
|
||||
int _blockHeight = LuaAPI.xlua_tointeger(L, 5);
|
||||
int _miplevel = LuaAPI.xlua_tointeger(L, 6);
|
||||
|
||||
var gen_ret = gen_to_be_invoked.GetPixels( _x, _y, _blockWidth, _blockHeight, _miplevel );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture2D.GetPixels!");
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_GetPixels32(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1);
|
||||
|
||||
|
||||
int gen_param_count = LuaAPI.lua_gettop(L);
|
||||
|
||||
if(gen_param_count == 1)
|
||||
{
|
||||
|
||||
var gen_ret = gen_to_be_invoked.GetPixels32( );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
|
||||
{
|
||||
int _miplevel = LuaAPI.xlua_tointeger(L, 2);
|
||||
|
||||
var gen_ret = gen_to_be_invoked.GetPixels32( _miplevel );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture2D.GetPixels32!");
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_PackTextures(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1);
|
||||
|
||||
|
||||
int gen_param_count = LuaAPI.lua_gettop(L);
|
||||
|
||||
if(gen_param_count == 3&& translator.Assignable<UnityEngine.Texture2D[]>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
|
||||
{
|
||||
UnityEngine.Texture2D[] _textures = (UnityEngine.Texture2D[])translator.GetObject(L, 2, typeof(UnityEngine.Texture2D[]));
|
||||
int _padding = LuaAPI.xlua_tointeger(L, 3);
|
||||
|
||||
var gen_ret = gen_to_be_invoked.PackTextures( _textures, _padding );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 4&& translator.Assignable<UnityEngine.Texture2D[]>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
|
||||
{
|
||||
UnityEngine.Texture2D[] _textures = (UnityEngine.Texture2D[])translator.GetObject(L, 2, typeof(UnityEngine.Texture2D[]));
|
||||
int _padding = LuaAPI.xlua_tointeger(L, 3);
|
||||
int _maximumAtlasSize = LuaAPI.xlua_tointeger(L, 4);
|
||||
|
||||
var gen_ret = gen_to_be_invoked.PackTextures( _textures, _padding, _maximumAtlasSize );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 5&& translator.Assignable<UnityEngine.Texture2D[]>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5))
|
||||
{
|
||||
UnityEngine.Texture2D[] _textures = (UnityEngine.Texture2D[])translator.GetObject(L, 2, typeof(UnityEngine.Texture2D[]));
|
||||
int _padding = LuaAPI.xlua_tointeger(L, 3);
|
||||
int _maximumAtlasSize = LuaAPI.xlua_tointeger(L, 4);
|
||||
bool _makeNoLongerReadable = LuaAPI.lua_toboolean(L, 5);
|
||||
|
||||
var gen_ret = gen_to_be_invoked.PackTextures( _textures, _padding, _maximumAtlasSize, _makeNoLongerReadable );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture2D.PackTextures!");
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_CreateExternalTexture_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
@ -1082,6 +740,348 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_GetPixels(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1);
|
||||
|
||||
|
||||
int gen_param_count = LuaAPI.lua_gettop(L);
|
||||
|
||||
if(gen_param_count == 1)
|
||||
{
|
||||
|
||||
var gen_ret = gen_to_be_invoked.GetPixels( );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
|
||||
{
|
||||
int _miplevel = LuaAPI.xlua_tointeger(L, 2);
|
||||
|
||||
var gen_ret = gen_to_be_invoked.GetPixels( _miplevel );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5))
|
||||
{
|
||||
int _x = LuaAPI.xlua_tointeger(L, 2);
|
||||
int _y = LuaAPI.xlua_tointeger(L, 3);
|
||||
int _blockWidth = LuaAPI.xlua_tointeger(L, 4);
|
||||
int _blockHeight = LuaAPI.xlua_tointeger(L, 5);
|
||||
|
||||
var gen_ret = gen_to_be_invoked.GetPixels( _x, _y, _blockWidth, _blockHeight );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 6&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6))
|
||||
{
|
||||
int _x = LuaAPI.xlua_tointeger(L, 2);
|
||||
int _y = LuaAPI.xlua_tointeger(L, 3);
|
||||
int _blockWidth = LuaAPI.xlua_tointeger(L, 4);
|
||||
int _blockHeight = LuaAPI.xlua_tointeger(L, 5);
|
||||
int _miplevel = LuaAPI.xlua_tointeger(L, 6);
|
||||
|
||||
var gen_ret = gen_to_be_invoked.GetPixels( _x, _y, _blockWidth, _blockHeight, _miplevel );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture2D.GetPixels!");
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_Compress(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1);
|
||||
|
||||
|
||||
|
||||
{
|
||||
bool _highQuality = LuaAPI.lua_toboolean(L, 2);
|
||||
|
||||
gen_to_be_invoked.Compress( _highQuality );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_ClearRequestedMipmapLevel(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1);
|
||||
|
||||
|
||||
|
||||
{
|
||||
|
||||
gen_to_be_invoked.ClearRequestedMipmapLevel( );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_IsRequestedMipmapLevelLoaded(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1);
|
||||
|
||||
|
||||
|
||||
{
|
||||
|
||||
var gen_ret = gen_to_be_invoked.IsRequestedMipmapLevelLoaded( );
|
||||
LuaAPI.lua_pushboolean(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_ClearMinimumMipmapLevel(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1);
|
||||
|
||||
|
||||
|
||||
{
|
||||
|
||||
gen_to_be_invoked.ClearMinimumMipmapLevel( );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_UpdateExternalTexture(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1);
|
||||
|
||||
|
||||
|
||||
{
|
||||
System.IntPtr _nativeTex = LuaAPI.lua_touserdata(L, 2);
|
||||
|
||||
gen_to_be_invoked.UpdateExternalTexture( _nativeTex );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_GetRawTextureData(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1);
|
||||
|
||||
|
||||
|
||||
{
|
||||
|
||||
var gen_ret = gen_to_be_invoked.GetRawTextureData( );
|
||||
LuaAPI.lua_pushstring(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_GetPixels32(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1);
|
||||
|
||||
|
||||
int gen_param_count = LuaAPI.lua_gettop(L);
|
||||
|
||||
if(gen_param_count == 1)
|
||||
{
|
||||
|
||||
var gen_ret = gen_to_be_invoked.GetPixels32( );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
|
||||
{
|
||||
int _miplevel = LuaAPI.xlua_tointeger(L, 2);
|
||||
|
||||
var gen_ret = gen_to_be_invoked.GetPixels32( _miplevel );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture2D.GetPixels32!");
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_PackTextures(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
UnityEngine.Texture2D gen_to_be_invoked = (UnityEngine.Texture2D)translator.FastGetCSObj(L, 1);
|
||||
|
||||
|
||||
int gen_param_count = LuaAPI.lua_gettop(L);
|
||||
|
||||
if(gen_param_count == 3&& translator.Assignable<UnityEngine.Texture2D[]>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
|
||||
{
|
||||
UnityEngine.Texture2D[] _textures = (UnityEngine.Texture2D[])translator.GetObject(L, 2, typeof(UnityEngine.Texture2D[]));
|
||||
int _padding = LuaAPI.xlua_tointeger(L, 3);
|
||||
|
||||
var gen_ret = gen_to_be_invoked.PackTextures( _textures, _padding );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 4&& translator.Assignable<UnityEngine.Texture2D[]>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
|
||||
{
|
||||
UnityEngine.Texture2D[] _textures = (UnityEngine.Texture2D[])translator.GetObject(L, 2, typeof(UnityEngine.Texture2D[]));
|
||||
int _padding = LuaAPI.xlua_tointeger(L, 3);
|
||||
int _maximumAtlasSize = LuaAPI.xlua_tointeger(L, 4);
|
||||
|
||||
var gen_ret = gen_to_be_invoked.PackTextures( _textures, _padding, _maximumAtlasSize );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
if(gen_param_count == 5&& translator.Assignable<UnityEngine.Texture2D[]>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5))
|
||||
{
|
||||
UnityEngine.Texture2D[] _textures = (UnityEngine.Texture2D[])translator.GetObject(L, 2, typeof(UnityEngine.Texture2D[]));
|
||||
int _padding = LuaAPI.xlua_tointeger(L, 3);
|
||||
int _maximumAtlasSize = LuaAPI.xlua_tointeger(L, 4);
|
||||
bool _makeNoLongerReadable = LuaAPI.lua_toboolean(L, 5);
|
||||
|
||||
var gen_ret = gen_to_be_invoked.PackTextures( _textures, _padding, _maximumAtlasSize, _makeNoLongerReadable );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Texture2D.PackTextures!");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -53,11 +53,7 @@ namespace XLua.CSObjectWrap
|
||||
null, null, null);
|
||||
|
||||
Utils.BeginClassRegister(type, L, __CreateInstance, 26, 10, 0);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "Slerp", _m_Slerp_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "SlerpUnclamped", _m_SlerpUnclamped_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "OrthoNormalize", _m_OrthoNormalize_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "RotateTowards", _m_RotateTowards_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "Lerp", _m_Lerp_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "Lerp", _m_Lerp_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "LerpUnclamped", _m_LerpUnclamped_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "MoveTowards", _m_MoveTowards_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "SmoothDamp", _m_SmoothDamp_xlua_st_);
|
||||
@ -76,6 +72,10 @@ namespace XLua.CSObjectWrap
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "SqrMagnitude", _m_SqrMagnitude_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "Min", _m_Min_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "Max", _m_Max_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "Slerp", _m_Slerp_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "SlerpUnclamped", _m_SlerpUnclamped_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "OrthoNormalize", _m_OrthoNormalize_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "RotateTowards", _m_RotateTowards_xlua_st_);
|
||||
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "kEpsilon", UnityEngine.Vector3.kEpsilon);
|
||||
@ -353,152 +353,6 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_Slerp_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
UnityEngine.Vector3 _a;translator.Get(L, 1, out _a);
|
||||
UnityEngine.Vector3 _b;translator.Get(L, 2, out _b);
|
||||
float _t = (float)LuaAPI.lua_tonumber(L, 3);
|
||||
|
||||
var gen_ret = UnityEngine.Vector3.Slerp( _a, _b, _t );
|
||||
translator.PushUnityEngineVector3(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_SlerpUnclamped_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
UnityEngine.Vector3 _a;translator.Get(L, 1, out _a);
|
||||
UnityEngine.Vector3 _b;translator.Get(L, 2, out _b);
|
||||
float _t = (float)LuaAPI.lua_tonumber(L, 3);
|
||||
|
||||
var gen_ret = UnityEngine.Vector3.SlerpUnclamped( _a, _b, _t );
|
||||
translator.PushUnityEngineVector3(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_OrthoNormalize_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
int gen_param_count = LuaAPI.lua_gettop(L);
|
||||
|
||||
if(gen_param_count == 2&& translator.Assignable<UnityEngine.Vector3>(L, 1)&& translator.Assignable<UnityEngine.Vector3>(L, 2))
|
||||
{
|
||||
UnityEngine.Vector3 _normal;translator.Get(L, 1, out _normal);
|
||||
UnityEngine.Vector3 _tangent;translator.Get(L, 2, out _tangent);
|
||||
|
||||
UnityEngine.Vector3.OrthoNormalize( ref _normal, ref _tangent );
|
||||
translator.PushUnityEngineVector3(L, _normal);
|
||||
translator.UpdateUnityEngineVector3(L, 1, _normal);
|
||||
|
||||
translator.PushUnityEngineVector3(L, _tangent);
|
||||
translator.UpdateUnityEngineVector3(L, 2, _tangent);
|
||||
|
||||
|
||||
|
||||
|
||||
return 2;
|
||||
}
|
||||
if(gen_param_count == 3&& translator.Assignable<UnityEngine.Vector3>(L, 1)&& translator.Assignable<UnityEngine.Vector3>(L, 2)&& translator.Assignable<UnityEngine.Vector3>(L, 3))
|
||||
{
|
||||
UnityEngine.Vector3 _normal;translator.Get(L, 1, out _normal);
|
||||
UnityEngine.Vector3 _tangent;translator.Get(L, 2, out _tangent);
|
||||
UnityEngine.Vector3 _binormal;translator.Get(L, 3, out _binormal);
|
||||
|
||||
UnityEngine.Vector3.OrthoNormalize( ref _normal, ref _tangent, ref _binormal );
|
||||
translator.PushUnityEngineVector3(L, _normal);
|
||||
translator.UpdateUnityEngineVector3(L, 1, _normal);
|
||||
|
||||
translator.PushUnityEngineVector3(L, _tangent);
|
||||
translator.UpdateUnityEngineVector3(L, 2, _tangent);
|
||||
|
||||
translator.PushUnityEngineVector3(L, _binormal);
|
||||
translator.UpdateUnityEngineVector3(L, 3, _binormal);
|
||||
|
||||
|
||||
|
||||
|
||||
return 3;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Vector3.OrthoNormalize!");
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_RotateTowards_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
UnityEngine.Vector3 _current;translator.Get(L, 1, out _current);
|
||||
UnityEngine.Vector3 _target;translator.Get(L, 2, out _target);
|
||||
float _maxRadiansDelta = (float)LuaAPI.lua_tonumber(L, 3);
|
||||
float _maxMagnitudeDelta = (float)LuaAPI.lua_tonumber(L, 4);
|
||||
|
||||
var gen_ret = UnityEngine.Vector3.RotateTowards( _current, _target, _maxRadiansDelta, _maxMagnitudeDelta );
|
||||
translator.PushUnityEngineVector3(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_Lerp_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
@ -1308,6 +1162,152 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_Slerp_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
UnityEngine.Vector3 _a;translator.Get(L, 1, out _a);
|
||||
UnityEngine.Vector3 _b;translator.Get(L, 2, out _b);
|
||||
float _t = (float)LuaAPI.lua_tonumber(L, 3);
|
||||
|
||||
var gen_ret = UnityEngine.Vector3.Slerp( _a, _b, _t );
|
||||
translator.PushUnityEngineVector3(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_SlerpUnclamped_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
UnityEngine.Vector3 _a;translator.Get(L, 1, out _a);
|
||||
UnityEngine.Vector3 _b;translator.Get(L, 2, out _b);
|
||||
float _t = (float)LuaAPI.lua_tonumber(L, 3);
|
||||
|
||||
var gen_ret = UnityEngine.Vector3.SlerpUnclamped( _a, _b, _t );
|
||||
translator.PushUnityEngineVector3(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_OrthoNormalize_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
int gen_param_count = LuaAPI.lua_gettop(L);
|
||||
|
||||
if(gen_param_count == 2&& translator.Assignable<UnityEngine.Vector3>(L, 1)&& translator.Assignable<UnityEngine.Vector3>(L, 2))
|
||||
{
|
||||
UnityEngine.Vector3 _normal;translator.Get(L, 1, out _normal);
|
||||
UnityEngine.Vector3 _tangent;translator.Get(L, 2, out _tangent);
|
||||
|
||||
UnityEngine.Vector3.OrthoNormalize( ref _normal, ref _tangent );
|
||||
translator.PushUnityEngineVector3(L, _normal);
|
||||
translator.UpdateUnityEngineVector3(L, 1, _normal);
|
||||
|
||||
translator.PushUnityEngineVector3(L, _tangent);
|
||||
translator.UpdateUnityEngineVector3(L, 2, _tangent);
|
||||
|
||||
|
||||
|
||||
|
||||
return 2;
|
||||
}
|
||||
if(gen_param_count == 3&& translator.Assignable<UnityEngine.Vector3>(L, 1)&& translator.Assignable<UnityEngine.Vector3>(L, 2)&& translator.Assignable<UnityEngine.Vector3>(L, 3))
|
||||
{
|
||||
UnityEngine.Vector3 _normal;translator.Get(L, 1, out _normal);
|
||||
UnityEngine.Vector3 _tangent;translator.Get(L, 2, out _tangent);
|
||||
UnityEngine.Vector3 _binormal;translator.Get(L, 3, out _binormal);
|
||||
|
||||
UnityEngine.Vector3.OrthoNormalize( ref _normal, ref _tangent, ref _binormal );
|
||||
translator.PushUnityEngineVector3(L, _normal);
|
||||
translator.UpdateUnityEngineVector3(L, 1, _normal);
|
||||
|
||||
translator.PushUnityEngineVector3(L, _tangent);
|
||||
translator.UpdateUnityEngineVector3(L, 2, _tangent);
|
||||
|
||||
translator.PushUnityEngineVector3(L, _binormal);
|
||||
translator.UpdateUnityEngineVector3(L, 3, _binormal);
|
||||
|
||||
|
||||
|
||||
|
||||
return 3;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Vector3.OrthoNormalize!");
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_RotateTowards_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
UnityEngine.Vector3 _current;translator.Get(L, 1, out _current);
|
||||
UnityEngine.Vector3 _target;translator.Get(L, 2, out _target);
|
||||
float _maxRadiansDelta = (float)LuaAPI.lua_tonumber(L, 3);
|
||||
float _maxMagnitudeDelta = (float)LuaAPI.lua_tonumber(L, 4);
|
||||
|
||||
var gen_ret = UnityEngine.Vector3.RotateTowards( _current, _target, _maxRadiansDelta, _maxMagnitudeDelta );
|
||||
translator.PushUnityEngineVector3(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -281,6 +281,9 @@ namespace XLua.CSObjectWrap
|
||||
translator.DelayWrapLoader(typeof(BF.BFTouchManager), BFBFTouchManagerWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(BF.BattleControlBg), BFBattleControlBgWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(BF.BattleUnitAttr), BFBattleUnitAttrWrap.__Register);
|
||||
|
||||
|
||||
@ -328,14 +331,14 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
translator.DelayWrapLoader(typeof(BF.TimelineEventItem), BFTimelineEventItemWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(BF.TimelineHelper), BFTimelineHelperWrap.__Register);
|
||||
|
||||
}
|
||||
|
||||
static void wrapInit2(LuaEnv luaenv, ObjectTranslator translator)
|
||||
{
|
||||
|
||||
translator.DelayWrapLoader(typeof(BF.TimelineHelper), BFTimelineHelperWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(BF.TimelineSortingOderHelper), BFTimelineSortingOderHelperWrap.__Register);
|
||||
|
||||
|
||||
@ -485,14 +488,14 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
translator.DelayWrapLoader(typeof(BF.BFSlider), BFBFSliderWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(BF.BFUnitySlider), BFBFUnitySliderWrap.__Register);
|
||||
|
||||
}
|
||||
|
||||
static void wrapInit3(LuaEnv luaenv, ObjectTranslator translator)
|
||||
{
|
||||
|
||||
translator.DelayWrapLoader(typeof(BF.BFUnitySlider), BFBFUnitySliderWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(BF.RawImageGrid), BFRawImageGridWrap.__Register);
|
||||
|
||||
|
||||
@ -642,14 +645,14 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
translator.DelayWrapLoader(typeof(AdFormat), AdFormatWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(IronSource), IronSourceWrap.__Register);
|
||||
|
||||
}
|
||||
|
||||
static void wrapInit4(LuaEnv luaenv, ObjectTranslator translator)
|
||||
{
|
||||
|
||||
translator.DelayWrapLoader(typeof(IronSource), IronSourceWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(IronSourceAdInfo), IronSourceAdInfoWrap.__Register);
|
||||
|
||||
|
||||
@ -799,14 +802,14 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
translator.DelayWrapLoader(typeof(ThinkingAnalytics.Utils.TD_PropertiesChecker), ThinkingAnalyticsUtilsTD_PropertiesCheckerWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(ThinkingAnalytics.TaException.ThinkingSDKExceptionHandler), ThinkingAnalyticsTaExceptionThinkingSDKExceptionHandlerWrap.__Register);
|
||||
|
||||
}
|
||||
|
||||
static void wrapInit5(LuaEnv luaenv, ObjectTranslator translator)
|
||||
{
|
||||
|
||||
translator.DelayWrapLoader(typeof(ThinkingAnalytics.TaException.ThinkingSDKExceptionHandler), ThinkingAnalyticsTaExceptionThinkingSDKExceptionHandlerWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(IronSourceJSON.Json), IronSourceJSONJsonWrap.__Register);
|
||||
|
||||
|
||||
@ -956,14 +959,14 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
translator.DelayWrapLoader(typeof(DG.Tweening.DOTweenCYInstruction.WaitForElapsedLoops), DGTweeningDOTweenCYInstructionWaitForElapsedLoopsWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(DG.Tweening.DOTweenCYInstruction.WaitForPosition), DGTweeningDOTweenCYInstructionWaitForPositionWrap.__Register);
|
||||
|
||||
}
|
||||
|
||||
static void wrapInit6(LuaEnv luaenv, ObjectTranslator translator)
|
||||
{
|
||||
|
||||
translator.DelayWrapLoader(typeof(DG.Tweening.DOTweenCYInstruction.WaitForPosition), DGTweeningDOTweenCYInstructionWaitForPositionWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(DG.Tweening.DOTweenCYInstruction.WaitForStart), DGTweeningDOTweenCYInstructionWaitForStartWrap.__Register);
|
||||
|
||||
|
||||
@ -1113,14 +1116,14 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
translator.DelayWrapLoader(typeof(UnityEngine.Vector3), UnityEngineVector3Wrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(UnityEngine.Vector4), UnityEngineVector4Wrap.__Register);
|
||||
|
||||
}
|
||||
|
||||
static void wrapInit7(LuaEnv luaenv, ObjectTranslator translator)
|
||||
{
|
||||
|
||||
translator.DelayWrapLoader(typeof(UnityEngine.Vector4), UnityEngineVector4Wrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(UnityEngine.Quaternion), UnityEngineQuaternionWrap.__Register);
|
||||
|
||||
|
||||
@ -1270,14 +1273,14 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.MinMaxCurve), UnityEngineParticleSystemMinMaxCurveWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.Particle), UnityEngineParticleSystemParticleWrap.__Register);
|
||||
|
||||
}
|
||||
|
||||
static void wrapInit8(LuaEnv luaenv, ObjectTranslator translator)
|
||||
{
|
||||
|
||||
translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.Particle), UnityEngineParticleSystemParticleWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.Burst), UnityEngineParticleSystemBurstWrap.__Register);
|
||||
|
||||
|
||||
@ -1427,14 +1430,14 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
translator.DelayWrapLoader(typeof(UnityEngine.LineRenderer), UnityEngineLineRendererWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(UnityEngine.Texture2D), UnityEngineTexture2DWrap.__Register);
|
||||
|
||||
}
|
||||
|
||||
static void wrapInit9(LuaEnv luaenv, ObjectTranslator translator)
|
||||
{
|
||||
|
||||
translator.DelayWrapLoader(typeof(UnityEngine.Texture2D), UnityEngineTexture2DWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(UnityEngine.Texture2D.EXRFlags), UnityEngineTexture2DEXRFlagsWrap.__Register);
|
||||
|
||||
|
||||
@ -1584,14 +1587,14 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
translator.DelayWrapLoader(typeof(UnityEngine.UI.InputField.LineType), UnityEngineUIInputFieldLineTypeWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(UnityEngine.UI.InputField.SubmitEvent), UnityEngineUIInputFieldSubmitEventWrap.__Register);
|
||||
|
||||
}
|
||||
|
||||
static void wrapInit10(LuaEnv luaenv, ObjectTranslator translator)
|
||||
{
|
||||
|
||||
translator.DelayWrapLoader(typeof(UnityEngine.UI.InputField.SubmitEvent), UnityEngineUIInputFieldSubmitEventWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(UnityEngine.UI.InputField.OnChangeEvent), UnityEngineUIInputFieldOnChangeEventWrap.__Register);
|
||||
|
||||
|
||||
@ -1741,14 +1744,14 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
translator.DelayWrapLoader(typeof(Spine.Unity.BoneFollower.AxisOrientation), SpineUnityBoneFollowerAxisOrientationWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(Spine.Unity.SkeletonGraphic.LayoutMode), SpineUnitySkeletonGraphicLayoutModeWrap.__Register);
|
||||
|
||||
}
|
||||
|
||||
static void wrapInit11(LuaEnv luaenv, ObjectTranslator translator)
|
||||
{
|
||||
|
||||
translator.DelayWrapLoader(typeof(Spine.Unity.SkeletonGraphic.LayoutMode), SpineUnitySkeletonGraphicLayoutModeWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(TMPro.TextAlignmentOptions), TMProTextAlignmentOptionsWrap.__Register);
|
||||
|
||||
|
||||
@ -1898,14 +1901,14 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
translator.DelayWrapLoader(typeof(DG.Tweening.TweenSettingsExtensions), DGTweeningTweenSettingsExtensionsWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(DG.Tweening.ShortcutExtensions), DGTweeningShortcutExtensionsWrap.__Register);
|
||||
|
||||
}
|
||||
|
||||
static void wrapInit12(LuaEnv luaenv, ObjectTranslator translator)
|
||||
{
|
||||
|
||||
translator.DelayWrapLoader(typeof(DG.Tweening.ShortcutExtensions), DGTweeningShortcutExtensionsWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(Http.RequestState), HttpRequestStateWrap.__Register);
|
||||
|
||||
|
||||
|
||||
@ -88,6 +88,7 @@
|
||||
<type fullname="BF.BFFingerSnapshot" preserve="all"/>
|
||||
<type fullname="BF.BFGesture" preserve="all"/>
|
||||
<type fullname="BF.BFTouchManager" preserve="all"/>
|
||||
<type fullname="BF.BattleControlBg" preserve="all"/>
|
||||
<type fullname="BF.BattleUnitAttr" preserve="all"/>
|
||||
<type fullname="BF.BaseSortingOrderHelper" preserve="all"/>
|
||||
<type fullname="BF.CameraHelper" preserve="all"/>
|
||||
|
||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 4343727234628468602
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/textures/icon/avater.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/textures/icon/collection.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 4343727234628468602
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/textures/icon/collection.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/textures/icon/force_equip.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 4343727234628468602
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/textures/icon/force_equip.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -159,6 +159,7 @@ MonoBehaviour:
|
||||
- {fileID: 21300000, guid: de67ff43cf9c86c46be7127c2fb7cc84, type: 3}
|
||||
- {fileID: 21300000, guid: 77026c4d6ad5e0f4d941920a0ef3f272, type: 3}
|
||||
- {fileID: 21300000, guid: 1421585b364b1fb4ab0d951bb5d0f35d, type: 3}
|
||||
- {fileID: 21300000, guid: 7716cb1bbd8234cdea572390f709ea1b, type: 3}
|
||||
- {fileID: 21300000, guid: 9bb2f10b15aa44a4fa22ec0655146511, type: 3}
|
||||
- {fileID: 21300000, guid: be484dcfccac44f48bece88cc9294c8f, type: 3}
|
||||
- {fileID: 21300000, guid: e53d6e8ee4f256040a5d26aa8233520b, type: 3}
|
||||
@ -166,4 +167,4 @@ MonoBehaviour:
|
||||
- {fileID: 21300000, guid: 4883eddf5771c424c964bc2e32f2cb09, type: 3}
|
||||
- {fileID: 21300000, guid: 90cd8a98ab36f5f429ca27d808dc664f, type: 3}
|
||||
- {fileID: 21300000, guid: 9f4d825138b34164cb6e9e64406dd12a, type: 3}
|
||||
spriteNameList: 73ef7596df354ed3e0354ed3e2354ed3e3354ed3919850e8929850e8939850e8949850e8959850e8969850e8979850e8947eef9a667213652f396c3f22b5421523b5421537aa723a01d54ed3525806155358061504b9a932ede09396eee09396efe09396f0e09396f1e09396f2e09396bd9b0e6913dcc4b814dcc4b815dcc4b816dcc4b817dcc4b818dcc4b819dcc4b81adcc4b81bdcc4b81cdcc4b8be9b0e6932dcc4b833dcc4b834dcc4b835dcc4b836dcc4b837dcc4b838dcc4b839dcc4b83adcc4b83bdcc4b8bf9b0e6951dcc4b852dcc4b853dcc4b854dcc4b855dcc4b856dcc4b8c09b0e69c19b0e69c29b0e69c39b0e69c49b0e69c59b0e696fe5222e54a9179b0d7ccc490e7ccc490f7ccc49107ccc49132253d3c33f686cc43f686cc53f686ca4afbba06a2996ce6b2996ce6c2996ce6d2996cef90ee7ab9afa36db9bfa36db9cfa36db0196263e029d3752a3c0a1b6a4c0a1b6a5c0a1b6958cd3a2415abdf4495bbdf4c767bdf4948dbdf4e0b6b5f6a45a15e809d618e85a4c581b1ddd9f90c7a6c0f42f42c0b73042c0b73142c0b739fba4313afba4313bfba431ce71fe31cf71fe31d071fe31c0b35232c1b35232c2b35232cd4fd4681304c2f41bed664187156e7a86d89f5487d89f5488d89f5489d89f5442e685d543e685d5499b18984a9b18984b9b18984c9b18984d9b1898e1d0a115ccb53bb2cdb53bb2d120b00dd220b00d50fb2eba51fb2eba73ea16e874ea16e81e5457221f5457222bf929362cf92936cf0775471557dd4782b8592383b85923ebb25356ecb2535683b74c9784b74c978c8d63ad107222fd627da494f525e9106e14a26803e475062623b5b6
|
||||
spriteNameList: 73ef7596df354ed3e0354ed3e2354ed3e3354ed3919850e8929850e8939850e8949850e8959850e8969850e8979850e8947eef9a667213652f396c3f22b5421523b5421537aa723a01d54ed3525806155358061504b9a932ede09396eee09396efe09396f0e09396f1e09396f2e09396bd9b0e6913dcc4b814dcc4b815dcc4b816dcc4b817dcc4b818dcc4b819dcc4b81adcc4b81bdcc4b81cdcc4b8be9b0e6932dcc4b833dcc4b834dcc4b835dcc4b836dcc4b837dcc4b838dcc4b839dcc4b83adcc4b83bdcc4b8bf9b0e6951dcc4b852dcc4b853dcc4b854dcc4b855dcc4b856dcc4b8c09b0e69c19b0e69c29b0e69c39b0e69c49b0e69c59b0e696fe5222e54a9179b0d7ccc490e7ccc490f7ccc49107ccc49132253d3c33f686cc43f686cc53f686ca4afbba06a2996ce6b2996ce6c2996ce6d2996cef90ee7ab9afa36db9bfa36db9cfa36db0196263e029d3752a3c0a1b6a4c0a1b6a5c0a1b6958cd3a2415abdf4495bbdf4c767bdf4948dbdf4e0b6b5f6a45a15e809d618e85a4c581b1ddd9f90c7a6c0f42f42c0b73042c0b73142c0b739fba4313afba4313bfba431ce71fe31cf71fe31d071fe31c0b35232c1b35232c2b35232cd4fd4681304c2f41bed664187156e7a86d89f5487d89f5488d89f5489d89f5442e685d543e685d5499b18984a9b18984b9b18984c9b18984d9b1898e1d0a115ccb53bb2cdb53bb2d120b00dd220b00d50fb2eba51fb2eba73ea16e874ea16e81e5457221f5457222bf929362cf92936cf0775471557dd4782b8592383b85923ebb25356ecb2535683b74c9784b74c97450c00008c8d63ad107222fd627da494f525e9106e14a26803e475062623b5b6
|
||||
|
||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/textures/ui/force_equip.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 4343727234628468602
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/textures/ui/force_equip.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/textures/ui/idle.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 4343727234628468602
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/textures/ui/idle.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/textures/ui/talent.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 4343727234628468602
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/textures/ui/talent.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -143,5 +143,5 @@ TextureImporter:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName: arts/effects/texture/flare/fx_flare_ss_i8.png.ab
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
||||
@ -143,5 +143,5 @@ TextureImporter:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName: arts/effects/texture/mask/fx_mask_ss_i17.png.ab
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
||||
@ -143,5 +143,5 @@ TextureImporter:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName: arts/effects/texture/mask/fx_mask_ss_i47.png.ab
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
||||
@ -143,5 +143,5 @@ TextureImporter:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName: arts/effects/texture/path/fx_path_yj_e1.png.ab
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
||||
@ -143,5 +143,5 @@ TextureImporter:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName: arts/effects/texture/ring/fx_ring_b15.png.ab
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
||||
@ -42,204 +42,19 @@ MonoBehaviour:
|
||||
m_StrikethroughOffset: 6.8
|
||||
m_StrikethroughThickness: 4.64
|
||||
m_TabWidth: 11
|
||||
m_GlyphTable:
|
||||
- m_Index: 19
|
||||
m_Metrics:
|
||||
m_Width: 19.71875
|
||||
m_Height: 23.71875
|
||||
m_HorizontalBearingX: 0.671875
|
||||
m_HorizontalBearingY: 23.078125
|
||||
m_HorizontalAdvance: 21.03125
|
||||
m_GlyphRect:
|
||||
m_X: 5
|
||||
m_Y: 5
|
||||
m_Width: 21
|
||||
m_Height: 25
|
||||
m_Scale: 1
|
||||
m_AtlasIndex: 0
|
||||
m_ClassDefinitionType: 0
|
||||
- m_Index: 24
|
||||
m_Metrics:
|
||||
m_Width: 19.203125
|
||||
m_Height: 23.078125
|
||||
m_HorizontalBearingX: 0.671875
|
||||
m_HorizontalBearingY: 22.4375
|
||||
m_HorizontalAdvance: 21.03125
|
||||
m_GlyphRect:
|
||||
m_X: 5
|
||||
m_Y: 39
|
||||
m_Width: 20
|
||||
m_Height: 24
|
||||
m_Scale: 1
|
||||
m_AtlasIndex: 0
|
||||
m_ClassDefinitionType: 0
|
||||
- m_Index: 18
|
||||
m_Metrics:
|
||||
m_Width: 11.390625
|
||||
m_Height: 26.578125
|
||||
m_HorizontalBearingX: -0.125
|
||||
m_HorizontalBearingY: 23.609375
|
||||
m_HorizontalAdvance: 10.8125
|
||||
m_GlyphRect:
|
||||
m_X: 5
|
||||
m_Y: 72
|
||||
m_Width: 13
|
||||
m_Height: 27
|
||||
m_Scale: 1
|
||||
m_AtlasIndex: 0
|
||||
m_ClassDefinitionType: 0
|
||||
- m_Index: 20
|
||||
m_Metrics:
|
||||
m_Width: 11.609375
|
||||
m_Height: 22.4375
|
||||
m_HorizontalBearingX: 3.234375
|
||||
m_HorizontalBearingY: 22.4375
|
||||
m_HorizontalAdvance: 21.03125
|
||||
m_GlyphRect:
|
||||
m_X: 5
|
||||
m_Y: 108
|
||||
m_Width: 12
|
||||
m_Height: 23
|
||||
m_Scale: 1
|
||||
m_AtlasIndex: 0
|
||||
m_ClassDefinitionType: 0
|
||||
- m_Index: 21
|
||||
m_Metrics:
|
||||
m_Width: 18.78125
|
||||
m_Height: 23.078125
|
||||
m_HorizontalBearingX: 0.828125
|
||||
m_HorizontalBearingY: 23.078125
|
||||
m_HorizontalAdvance: 21.03125
|
||||
m_GlyphRect:
|
||||
m_X: 5
|
||||
m_Y: 140
|
||||
m_Width: 20
|
||||
m_Height: 24
|
||||
m_Scale: 1
|
||||
m_AtlasIndex: 0
|
||||
m_ClassDefinitionType: 0
|
||||
- m_Index: 22
|
||||
m_Metrics:
|
||||
m_Width: 18.75
|
||||
m_Height: 23.71875
|
||||
m_HorizontalBearingX: 1.0625
|
||||
m_HorizontalBearingY: 23.078125
|
||||
m_HorizontalAdvance: 21.03125
|
||||
m_GlyphRect:
|
||||
m_X: 27
|
||||
m_Y: 72
|
||||
m_Width: 19
|
||||
m_Height: 25
|
||||
m_Scale: 1
|
||||
m_AtlasIndex: 0
|
||||
m_ClassDefinitionType: 0
|
||||
- m_Index: 23
|
||||
m_Metrics:
|
||||
m_Width: 19.359375
|
||||
m_Height: 22.4375
|
||||
m_HorizontalBearingX: 0.796875
|
||||
m_HorizontalBearingY: 22.4375
|
||||
m_HorizontalAdvance: 21.03125
|
||||
m_GlyphRect:
|
||||
m_X: 26
|
||||
m_Y: 108
|
||||
m_Width: 21
|
||||
m_Height: 23
|
||||
m_Scale: 1
|
||||
m_AtlasIndex: 0
|
||||
m_ClassDefinitionType: 0
|
||||
m_CharacterTable:
|
||||
- m_ElementType: 1
|
||||
m_Unicode: 48
|
||||
m_GlyphIndex: 19
|
||||
m_Scale: 1
|
||||
- m_ElementType: 1
|
||||
m_Unicode: 53
|
||||
m_GlyphIndex: 24
|
||||
m_Scale: 1
|
||||
- m_ElementType: 1
|
||||
m_Unicode: 47
|
||||
m_GlyphIndex: 18
|
||||
m_Scale: 1
|
||||
- m_ElementType: 1
|
||||
m_Unicode: 49
|
||||
m_GlyphIndex: 20
|
||||
m_Scale: 1
|
||||
- m_ElementType: 1
|
||||
m_Unicode: 50
|
||||
m_GlyphIndex: 21
|
||||
m_Scale: 1
|
||||
- m_ElementType: 1
|
||||
m_Unicode: 51
|
||||
m_GlyphIndex: 22
|
||||
m_Scale: 1
|
||||
- m_ElementType: 1
|
||||
m_Unicode: 52
|
||||
m_GlyphIndex: 23
|
||||
m_Scale: 1
|
||||
m_GlyphTable: []
|
||||
m_CharacterTable: []
|
||||
m_AtlasTextures:
|
||||
- {fileID: 2800000, guid: 4d896be292017e7468fd94cd2b410269, type: 2}
|
||||
m_AtlasTextureIndex: 0
|
||||
m_IsMultiAtlasTexturesEnabled: 1
|
||||
m_ClearDynamicDataOnBuild: 0
|
||||
m_UsedGlyphRects:
|
||||
- m_X: 0
|
||||
m_Y: 0
|
||||
m_Width: 30
|
||||
m_Height: 34
|
||||
- m_X: 0
|
||||
m_Y: 34
|
||||
m_Width: 29
|
||||
m_Height: 33
|
||||
- m_X: 0
|
||||
m_Y: 67
|
||||
m_Width: 22
|
||||
m_Height: 36
|
||||
- m_X: 0
|
||||
m_Y: 103
|
||||
m_Width: 21
|
||||
m_Height: 32
|
||||
- m_X: 0
|
||||
m_Y: 135
|
||||
m_Width: 29
|
||||
m_Height: 33
|
||||
- m_X: 22
|
||||
m_Y: 67
|
||||
m_Width: 28
|
||||
m_Height: 34
|
||||
- m_X: 21
|
||||
m_Y: 103
|
||||
m_Width: 30
|
||||
m_Height: 32
|
||||
m_UsedGlyphRects: []
|
||||
m_FreeGlyphRects:
|
||||
- m_X: 0
|
||||
m_Y: 168
|
||||
m_Y: 0
|
||||
m_Width: 255
|
||||
m_Height: 87
|
||||
- m_X: 30
|
||||
m_Y: 0
|
||||
m_Width: 225
|
||||
m_Height: 67
|
||||
- m_X: 29
|
||||
m_Y: 34
|
||||
m_Width: 226
|
||||
m_Height: 33
|
||||
- m_X: 50
|
||||
m_Y: 0
|
||||
m_Width: 205
|
||||
m_Height: 103
|
||||
- m_X: 51
|
||||
m_Y: 0
|
||||
m_Width: 204
|
||||
m_Height: 255
|
||||
- m_X: 29
|
||||
m_Y: 135
|
||||
m_Width: 226
|
||||
m_Height: 120
|
||||
- m_X: 22
|
||||
m_Y: 101
|
||||
m_Width: 233
|
||||
m_Height: 2
|
||||
m_fontInfo:
|
||||
Name:
|
||||
PointSize: 0
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -1,10 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 84b68ec89e1638f449679d4c168e43a6
|
||||
ShaderImporter:
|
||||
ShaderIncludeImporter:
|
||||
externalObjects: {}
|
||||
defaultTextures: []
|
||||
nonModifiableTextures: []
|
||||
preprocessorOverride: 0
|
||||
userData:
|
||||
assetBundleName: arts/shaders.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -1,10 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4f416cada7739734d9ee98e70ad6726d
|
||||
ShaderImporter:
|
||||
ShaderIncludeImporter:
|
||||
externalObjects: {}
|
||||
defaultTextures: []
|
||||
nonModifiableTextures: []
|
||||
preprocessorOverride: 0
|
||||
userData:
|
||||
assetBundleName: arts/shaders.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -1,10 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 66445eb8256774e4ea0f9bcce0bb55c2
|
||||
ShaderImporter:
|
||||
ShaderIncludeImporter:
|
||||
externalObjects: {}
|
||||
defaultTextures: []
|
||||
nonModifiableTextures: []
|
||||
preprocessorOverride: 0
|
||||
userData:
|
||||
assetBundleName: arts/shaders.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -1,10 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 44ce92b5aac20644ca45289d47b75597
|
||||
ShaderImporter:
|
||||
ShaderIncludeImporter:
|
||||
externalObjects: {}
|
||||
defaultTextures: []
|
||||
nonModifiableTextures: []
|
||||
preprocessorOverride: 0
|
||||
userData:
|
||||
assetBundleName: arts/shaders.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -1,10 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9e2126c6e29322e4eade7d5358629402
|
||||
ShaderImporter:
|
||||
ShaderIncludeImporter:
|
||||
externalObjects: {}
|
||||
defaultTextures: []
|
||||
nonModifiableTextures: []
|
||||
preprocessorOverride: 0
|
||||
userData:
|
||||
assetBundleName: arts/shaders.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -1,10 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 599ff43d19098534eb36d93e9e8a6aec
|
||||
ShaderImporter:
|
||||
ShaderIncludeImporter:
|
||||
externalObjects: {}
|
||||
defaultTextures: []
|
||||
nonModifiableTextures: []
|
||||
preprocessorOverride: 0
|
||||
userData:
|
||||
assetBundleName: arts/shaders.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -1,10 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 309b064c2d387a1488d017f7e22cee42
|
||||
ShaderImporter:
|
||||
ShaderIncludeImporter:
|
||||
externalObjects: {}
|
||||
defaultTextures: []
|
||||
nonModifiableTextures: []
|
||||
preprocessorOverride: 0
|
||||
userData:
|
||||
assetBundleName: arts/shaders.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -1,10 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 72d1b88bdb0c29540b8011cf9ceefbe9
|
||||
ShaderImporter:
|
||||
ShaderIncludeImporter:
|
||||
externalObjects: {}
|
||||
defaultTextures: []
|
||||
nonModifiableTextures: []
|
||||
preprocessorOverride: 0
|
||||
userData:
|
||||
assetBundleName: arts/shaders.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -1,10 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d3d44d78f31fe7f4a9627e1efac99df4
|
||||
ShaderImporter:
|
||||
ShaderIncludeImporter:
|
||||
externalObjects: {}
|
||||
defaultTextures: []
|
||||
nonModifiableTextures: []
|
||||
preprocessorOverride: 0
|
||||
userData:
|
||||
assetBundleName: arts/shaders.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -1,10 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a962176ef0e36884bb5eac0dedfc1f37
|
||||
ShaderImporter:
|
||||
ShaderIncludeImporter:
|
||||
externalObjects: {}
|
||||
defaultTextures: []
|
||||
nonModifiableTextures: []
|
||||
preprocessorOverride: 0
|
||||
userData:
|
||||
assetBundleName: arts/shaders.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -1,10 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4f2881d5f32941c478ab383dccf53760
|
||||
ShaderImporter:
|
||||
ShaderIncludeImporter:
|
||||
externalObjects: {}
|
||||
defaultTextures: []
|
||||
nonModifiableTextures: []
|
||||
preprocessorOverride: 0
|
||||
userData:
|
||||
assetBundleName: arts/shaders.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -1,10 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7c31a408e840b5441aff4c1e805281b9
|
||||
ShaderImporter:
|
||||
ShaderIncludeImporter:
|
||||
externalObjects: {}
|
||||
defaultTextures: []
|
||||
nonModifiableTextures: []
|
||||
preprocessorOverride: 0
|
||||
userData:
|
||||
assetBundleName: arts/shaders.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -1,10 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9f2dd1465d444e54a90ce0abd81d0f59
|
||||
ShaderImporter:
|
||||
ShaderIncludeImporter:
|
||||
externalObjects: {}
|
||||
defaultTextures: []
|
||||
nonModifiableTextures: []
|
||||
preprocessorOverride: 0
|
||||
userData:
|
||||
assetBundleName: arts/shaders.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -1,10 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 14051cff4859e9c4f8c3926a4d01488b
|
||||
ShaderImporter:
|
||||
ShaderIncludeImporter:
|
||||
externalObjects: {}
|
||||
defaultTextures: []
|
||||
nonModifiableTextures: []
|
||||
preprocessorOverride: 0
|
||||
userData:
|
||||
assetBundleName: arts/shaders.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -1,10 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 407bc68d299748449bbf7f48ee690f8d
|
||||
ShaderImporter:
|
||||
ShaderIncludeImporter:
|
||||
externalObjects: {}
|
||||
defaultTextures: []
|
||||
nonModifiableTextures: []
|
||||
preprocessorOverride: 0
|
||||
userData:
|
||||
assetBundleName: arts/shaders.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -1,10 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c334973cef89a9840b0b0c507e0377ab
|
||||
ShaderImporter:
|
||||
ShaderIncludeImporter:
|
||||
externalObjects: {}
|
||||
defaultTextures: []
|
||||
nonModifiableTextures: []
|
||||
preprocessorOverride: 0
|
||||
userData:
|
||||
assetBundleName: arts/shaders.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -1,10 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3997e2241185407d80309a82f9148466
|
||||
ShaderImporter:
|
||||
ShaderIncludeImporter:
|
||||
externalObjects: {}
|
||||
defaultTextures: []
|
||||
nonModifiableTextures: []
|
||||
preprocessorOverride: 0
|
||||
userData:
|
||||
assetBundleName: arts/shaders.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -1,10 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d930090c0cd643c7b55f19a38538c162
|
||||
ShaderImporter:
|
||||
ShaderIncludeImporter:
|
||||
externalObjects: {}
|
||||
defaultTextures: []
|
||||
nonModifiableTextures: []
|
||||
preprocessorOverride: 0
|
||||
userData:
|
||||
assetBundleName: arts/shaders.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -3,5 +3,5 @@ guid: 085dc281434592c488fc86f25b37836b
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10001.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -143,5 +143,5 @@ TextureImporter:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10001.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -3,5 +3,5 @@ guid: 87222f6091af4934ab7b249923462bbc
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10001.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10001.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10001.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10001.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -3,5 +3,5 @@ guid: 2347a9b423f128b43be267642300917f
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10002.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -143,5 +143,5 @@ TextureImporter:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10002.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -3,5 +3,5 @@ guid: 097bf9b14e05bfe438319cc40e62cfde
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10002.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10002.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10002.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10002.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -3,5 +3,5 @@ guid: b30538bffd4e878498d893c50ae71b12
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10003.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -143,5 +143,5 @@ TextureImporter:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10003.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -3,5 +3,5 @@ guid: d82520b420b4e9b41a3b1477ffdb72cc
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10003.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10003.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10003.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10003.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -3,5 +3,5 @@ guid: ab94d131b25768f458ba4aa3f36847e0
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10004.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -143,5 +143,5 @@ TextureImporter:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10004.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -3,5 +3,5 @@ guid: 92440a25a2a4c7544872ae9014c294b3
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10004.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10004.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10004.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10004.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -3,5 +3,5 @@ guid: ba56dd7cbe5c05948ad77785276b9707
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10005.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -143,5 +143,5 @@ TextureImporter:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10005.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -3,5 +3,5 @@ guid: c55adb6ef5fc62b408e37da86158d622
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10005.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10005.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10005.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10005.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -3,5 +3,5 @@ guid: b1be16d55afe2ff49833ff8517319aba
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10006.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -143,5 +143,5 @@ TextureImporter:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10006.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -3,5 +3,5 @@ guid: 9eeccbfdadb9827489206fe002262af8
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10006.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10006.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10006.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10006.ab
|
||||
assetBundleVariant:
|
||||
|
||||
@ -3,5 +3,5 @@ guid: 7134cd993b48557409dd795889a992ac
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleName: arts/spines/characters/m10007.ab
|
||||
assetBundleVariant:
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user