Init TEngine4.0.0

Init TEngine4.0.0
This commit is contained in:
ALEXTANG
2023-10-08 15:21:33 +08:00
parent 4c8c37ffd8
commit 8c3d6308b9
3773 changed files with 49313 additions and 150734 deletions

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 0d42765ccc9e81645b162e75915e4afb
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ebf7082f7f8aba24da9ad776c56211e5
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,38 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: -1671962818, guid: afbf832bc46149f5a291e87cab63e46d, type: 3}
m_Name: AutomationConfig
m_EditorClassIdentifier:
OnPlayMode: 0
OnPlayModeIfWarnings: 0
OnPlayModeIfErrors: 3
OnPlayModeAlwaysCompleteValidationFully: 0
OnPlayModeFlashScreen: 0
OnPlayModeSetup:
Profile: 0
ProfileAsset: {fileID: 0}
OnBuild: 0
OnBuildIfWarnings: 0
OnBuildIfErrors: 3
OnBuildAlwaysCompleteValidationFully: 0
OnBuildFlashScreen: 0
OnBuildSetup:
Profile: 0
ProfileAsset: {fileID: 0}
OnProjectStartup: 0
OnProjectStartupIfWarnings: 0
OnProjectStartupIfErrors: 1
OnProjectStartupAlwaysCompleteValidationFully: 0
OnProjectStartupFlashScreen: 0
OnProjectStartupSetup:
Profile: 0
ProfileAsset: {fileID: 0}

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 5323fc7af85418343b996ecc3b8e4b2a
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,84 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1426575000, guid: afbf832bc46149f5a291e87cab63e46d, type: 3}
m_Name: GlobalValidationConfig
m_EditorClassIdentifier:
ValidateScenesOnSceneLoad:
serializedValue: 0
changedFromDefault: 0
ValidateMainProfileOnLoad:
serializedValue: 0
changedFromDefault: 0
QueueAssetsOnLoad:
serializedValue: 0
changedFromDefault: 0
QueueScenesOnLoad:
serializedValue: 0
changedFromDefault: 0
PopulateQueueOnAssetDeleted:
serializedValue: 0
changedFromDefault: 0
PopulateQueueOnGameObjectDeleted:
serializedValue: 0
changedFromDefault: 0
RunMainValidationSessionOnLoad:
serializedValue: 0
changedFromDefault: 0
DeepValidation:
serializedValue: 0
changedFromDefault: 0
ContinuouslyValidateVisibleIssues:
serializedValue: 0
changedFromDefault: 0
PauseValidationWhileWorkingInSceneView:
serializedValue: 0
changedFromDefault: 0
PingOnDoubleClick:
serializedValue: 0
changedFromDefault: 0
FocusObjectOnDoubleClick:
serializedValue: 0
changedFromDefault: 0
FrameSelection:
serializedValue: 0
changedFromDefault: 0
SkipFirstSample:
serializedValue: 0
changedFromDefault: 0
ShowWidget:
serializedValue: 0
changedFromDefault: 0
DebugMode:
serializedValue: 0
changedFromDefault: 0
ShowWidgetOnlyWhenErrorOrWarnings:
serializedValue: 0
changedFromDefault: 0
EnableLeakDetection:
serializedValue: 0
changedFromDefault: 0
SupressAssetLoadErrorsFromUnityLogger:
serializedValue: 0
changedFromDefault: 0
OpenComponentInInspectorAndCloseOthers:
serializedValue: 0
changedFromDefault: 0
WatchForChanges:
serializedValue: 0
changedFromDefault: 0
ValidateInBackground:
serializedValue: 0
changedFromDefault: 0
KeepMainValidationSessionAliveInBackground:
serializedValue: 0
changedFromDefault: 0
HasShownValidationConfig: 1

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 2aceb4147fd03cb408ebba98d19c622f
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,15 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1434321088, guid: afbf832bc46149f5a291e87cab63e46d, type: 3}
m_Name: RuleConfig
m_EditorClassIdentifier:
projectRules: []

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 519f7d365e7b9a34f8b3da74cb76fb28
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 18cc8feda7507e2499419168dbb2bb59
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,65 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 217257422, guid: afbf832bc46149f5a291e87cab63e46d, type: 3}
m_Name: Main Profile
m_EditorClassIdentifier:
Include:
- Enabled: 1
Type: 2
Asset:
Path:
Filter:
Object: {fileID: 0}
Scene:
Type: 2
Value:
IncludeAssetDependencies: 1
AssetBundle:
AddressableGroup:
- Enabled: 1
Type: 2
Asset:
Path:
Filter:
Object: {fileID: 0}
Scene:
Type: 1
Value:
IncludeAssetDependencies: 1
AssetBundle:
AddressableGroup:
- Enabled: 1
Type: 2
Asset:
Path:
Filter:
Object: {fileID: 0}
Scene:
Type: 0
Value: Assets
IncludeAssetDependencies: 0
AssetBundle:
AddressableGroup:
- Enabled: 1
Type: 0
Asset:
Path: Assets
Filter:
Object: {fileID: 0}
Scene:
Type: 0
Value:
IncludeAssetDependencies: 0
AssetBundle:
AddressableGroup:
Exclude: []
icon: 391

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ccdb74d64b91b0040b50ad94254ef2d3
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,195 @@
//-----------------------------------------------------------------------
// <copyright file="EnsureCorrectOdinVersion.cs" company="Sirenix ApS">
// Copyright (c) Sirenix ApS. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
#if UNITY_EDITOR
namespace Sirenix.OdinValidator.Editor
{
using System;
using System.IO;
using System.Reflection;
using UnityEditor;
using UnityEngine;
internal static class EnsureCorrectOdinVersion
{
private const string validatorVersion = "3.1.10.0";
private static bool IsHeadlessOrBatchMode { get { return SystemInfo.graphicsDeviceType == UnityEngine.Rendering.GraphicsDeviceType.Null || UnityEditorInternal.InternalEditorUtility.inBatchMode; } }
[InitializeOnLoadMethod]
private static void Init()
{
#if SIRENIX_INTERNAL
return;
#endif
if (EditorPrefs.HasKey("PREVENT_SIRENIX_FILE_GENERATION"))
return;
if (IsHeadlessOrBatchMode)
return;
if (TryGetOdinInspectorVersion(out var inspectorVersion))
{
var iVer = Version.Parse(inspectorVersion);
var vVer = Version.Parse(validatorVersion);
if (iVer.Major == vVer.Major && iVer.Minor == vVer.Minor && iVer.Build == vVer.Build) // Ignore Revision
{
TryInstall();
}
else
{
var latestVersion = iVer > vVer ? inspectorVersion : validatorVersion;
var oldestProduct = iVer > vVer ? "Odin Validator" : "Odin Inspector";
var misMatchText = inspectorVersion + " : " + validatorVersion;
if (TryGetOdinInstallPath(out var path))
{
var versionMismatchFile = path + "Odin Validator/ignoreVersionMismatch.txt";
if (File.Exists(versionMismatchFile))
{
var misMatch = File.ReadAllText(versionMismatchFile).Trim();
if (misMatch == misMatchText)
return;
}
}
if (!EditorUtility.DisplayDialog(
"Odin Version Mismatch",
"Odin Inspector and Odin Validator need to be on the same version to function correctly.\n" +
$"\n" +
$"Current Odin Inspector: {inspectorVersion}\n" +
$"Current Odin Validator: {validatorVersion}\n" +
$"\n" +
$"Please install {oldestProduct} {latestVersion}",
"OK", "Ignore until next version mismatch"))
{
var versionMismatchFile = path + "Odin Validator/ignoreVersionMismatch.txt";
File.WriteAllText(versionMismatchFile, misMatchText);
};
}
}
else
{
EditorUtility.DisplayDialog(
"Odin Validator requires Odin Inspector",
$"Please install Odin Inspector {validatorVersion}",
"OK");
}
}
private static void TryInstall()
{
if (TryGetOdinInstallPath(out var path))
{
var tmp_extension = "_tmp";
var assemblyFiles = new string[]
{
path + "Assemblies/Sirenix.OdinValidator.Editor.dll",
path + "Assemblies/Sirenix.OdinValidator.Editor.dll.meta",
path + "Assemblies/Sirenix.OdinValidator.Editor.xml",
path + "Assemblies/Sirenix.OdinValidator.Editor.xml.meta",
path + "Assemblies/Sirenix.OdinValidator.Editor.pdb",
path + "Assemblies/Sirenix.OdinValidator.Editor.pdb.meta",
};
var requireUpdate = File.Exists(assemblyFiles[0] + tmp_extension);
if (requireUpdate)
{
// Install / update Odin Validator.
AssetDatabase.StartAssetEditing();
foreach (var item in assemblyFiles)
{
var oldFile = item;
var newFile = item + tmp_extension;
if (File.Exists(newFile))
{
if (File.Exists(oldFile))
File.Delete(oldFile);
File.Move(newFile, oldFile);
}
}
AssetDatabase.StopAssetEditing();
AssetDatabase.Refresh(ImportAssetOptions.ForceUpdate);
EditorPrefs.SetBool("ODIN_VALIDATOR_SHOW_GETTING_STARTED", true);
}
#if ODIN_INSPECTOR
else if (EditorPrefs.GetBool("ODIN_VALIDATOR_SHOW_GETTING_STARTED", false))
{
EditorPrefs.SetBool("ODIN_VALIDATOR_SHOW_GETTING_STARTED", false);
EditorApplication.delayCall += () =>
{
var t = Sirenix.Serialization.TwoWaySerializationBinder.Default.BindToType("Sirenix.OdinInspector.Editor.GettingStarted.GettingStartedWindow");
if (t != null)
{
var action = Utilities.Editor.Expressions.ExpressionUtility.ParseAction<bool, bool>("ShowWindow(false, true)", true, t, out var _);
action.Invoke(false, true);
}
};
}
#endif
}
else
{
Debug.LogError("Odin Validator was unable to find Sirenix.Utilities.SirenixAssetPaths.SirenixPluginPath");
}
}
private static bool TryGetOdinInstallPath(out string path)
{
var t = Type.GetType("Sirenix.Utilities.SirenixAssetPaths, Sirenix.Utilities");
if (t == null)
{
path = null;
return false;
}
var v = t.GetField("SirenixPluginPath", BindingFlags.Public | BindingFlags.Static);
if (v == null)
{
path = null;
return false;
}
path = v.GetValue(null) as string;
return true;
}
private static bool TryGetOdinInspectorVersion(out string version)
{
var t = Type.GetType("Sirenix.OdinInspector.Editor.OdinInspectorVersion, Sirenix.OdinInspector.Editor");
if (t == null)
{
version = null;
return false;
}
var v = t.GetProperty("Version", BindingFlags.Public | BindingFlags.Static);
if (v == null)
{
version = null;
return false;
}
version = v.GetValue(null) as string;
return true;
}
}
}
#endif

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 9454f64e8640a944ca8605d5b465d784
timeCreated: 1514513487
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,19 @@
-----------------------------------------------------------------------------------------
Thank you for using Odin Validator.
If there is anything we can help you with, or if you have any feedback, please don't hesitate to reach out!
-----------------------------------------------------------------------------------------
Getting Started: https://odininspector.com/tutorials/odin-project-validator/getting-started-with-odin-project-validator
Support: https://odininspector.com/support
Discord: https://discord.gg/AgDmStu
-----------------------------------------------------------------------------------------
Odin Validator is published and developed by Sirenix.
Sirenix: Https://sirenix.net
-----------------------------------------------------------------------------------------

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 151ca3ac64d79f9478810af1f27c4c57
timeCreated: 1556895130
licenseType: Store
TextScriptImporter:
userData:
assetBundleName:
assetBundleVariant: