甲方最新

This commit is contained in:
林小智丶 2024-12-20 16:08:29 +08:00
parent 48864a1689
commit 1ef6524417
308 changed files with 25351 additions and 15680 deletions

View File

@ -1,46 +0,0 @@
<linker>
<assembly fullname="Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<type fullname="PHomeEnemyWaveConfig" preserve="all" />
<type fullname="PHomeEnemyWaveGroupConfig" preserve="all" />
<type fullname="PHomeGameConfig" preserve="all" />
<type fullname="PHomeMonster" preserve="all" />
<type fullname="PHomeRigidbodyAnimation" preserve="all" />
<type fullname="PhysicsMovement2D" preserve="all" />
<type fullname="PHomeEnemyWaves" preserve="nothing" serialized="true" />
<type fullname="PhysicsMovement2D/AccelerationSetting" preserve="nothing" serialized="true" />
</assembly>
<assembly fullname="spine-unity, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<type fullname="Spine.Unity.SkeletonAnimation" preserve="all" />
<type fullname="Spine.Unity.SkeletonDataAsset" preserve="all" />
<type fullname="Spine.Unity.SpineAtlasAsset" preserve="all" />
<type fullname="Spine.Unity.BlendModeMaterials" preserve="nothing" serialized="true" />
<type fullname="Spine.Unity.BlendModeMaterials/ReplacementMaterial" preserve="nothing" serialized="true" />
<type fullname="Spine.Unity.SkeletonRenderer/SpriteMaskInteractionMaterials" preserve="nothing" serialized="true" />
</assembly>
<assembly fullname="Unity.Addressables, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" preserve="all">
<type fullname="UnityEngine.AddressableAssets.Addressables" preserve="all" />
</assembly>
<assembly fullname="Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" preserve="all">
<type fullname="UnityEngine.ResourceManagement.ResourceProviders.AssetBundleProvider" preserve="all" />
<type fullname="UnityEngine.ResourceManagement.ResourceProviders.BundledAssetProvider" preserve="all" />
<type fullname="UnityEngine.ResourceManagement.ResourceProviders.InstanceProvider" preserve="all" />
<type fullname="UnityEngine.ResourceManagement.ResourceProviders.LegacyResourcesProvider" preserve="all" />
<type fullname="UnityEngine.ResourceManagement.ResourceProviders.SceneProvider" preserve="all" />
</assembly>
<assembly fullname="UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<type fullname="UnityEngine.GameObject" preserve="all" />
<type fullname="UnityEngine.Material" preserve="all" />
<type fullname="UnityEngine.MeshFilter" preserve="all" />
<type fullname="UnityEngine.MeshRenderer" preserve="all" />
<type fullname="UnityEngine.Object" preserve="all" />
<type fullname="UnityEngine.Shader" preserve="all" />
<type fullname="UnityEngine.Sprite" preserve="all" />
<type fullname="UnityEngine.TextAsset" preserve="all" />
<type fullname="UnityEngine.Texture2D" preserve="all" />
<type fullname="UnityEngine.Transform" preserve="all" />
</assembly>
<assembly fullname="UnityEngine.Physics2DModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<type fullname="UnityEngine.CircleCollider2D" preserve="all" />
<type fullname="UnityEngine.Rigidbody2D" preserve="all" />
</assembly>
</linker>

View File

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

View File

@ -1,49 +1,14 @@
fileFormatVersion: 2
guid: 5651992cdad94894a3af7dc3f1da9170
timeCreated: 1488828285
PluginImporter:
externalObjects: {}
serializedVersion: 2
serializedVersion: 1
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
: N3DS
second:
enabled: 1
settings: {}
- first:
: PSM
second:
enabled: 1
settings: {}
- first:
: PSP2
second:
enabled: 1
settings: {}
- first:
: SamsungTV
second:
enabled: 1
settings: {}
- first:
: Tizen
second:
enabled: 1
settings: {}
- first:
: WiiU
second:
enabled: 1
settings: {}
- first:
Any:
second:
enabled: 0
settings:
Exclude Android: 1
@ -68,41 +33,45 @@ PluginImporter:
Exclude XboxOne: 0
Exclude iOS: 0
Exclude tvOS: 0
- first:
Editor: Editor
second:
Editor:
enabled: 0
settings:
DefaultValueInitialized: true
- first:
PS4: PS4
second:
N3DS:
enabled: 1
settings: {}
- first:
WebGL: WebGL
second:
PS4:
enabled: 1
settings: {}
- first:
Windows Store Apps: WindowsStoreApps
second:
PSM:
enabled: 1
settings: {}
PSP2:
enabled: 1
settings: {}
SamsungTV:
enabled: 1
settings: {}
Tizen:
enabled: 1
settings: {}
WebGL:
enabled: 1
settings: {}
WiiU:
enabled: 1
settings: {}
WindowsStoreApps:
enabled: 1
settings:
CPU: AnyCPU
- first:
XboxOne: XboxOne
second:
XboxOne:
enabled: 1
settings: {}
- first:
iPhone: iOS
second:
enabled: 0
iOS:
enabled: 1
settings: {}
- first:
tvOS: tvOS
second:
tvOS:
enabled: 1
settings: {}
userData:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 5651992cdad94894a3af7dc3f1da0a6f
timeCreated: 1488828285
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,49 +1,14 @@
fileFormatVersion: 2
guid: 5978f8f3dd274e848fbb7a123bde1fb9
timeCreated: 1488828285
PluginImporter:
externalObjects: {}
serializedVersion: 2
serializedVersion: 1
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
: N3DS
second:
enabled: 1
settings: {}
- first:
: PSM
second:
enabled: 1
settings: {}
- first:
: PSP2
second:
enabled: 1
settings: {}
- first:
: SamsungTV
second:
enabled: 1
settings: {}
- first:
: Tizen
second:
enabled: 1
settings: {}
- first:
: WiiU
second:
enabled: 1
settings: {}
- first:
Any:
second:
enabled: 0
settings:
Exclude Android: 1
@ -68,41 +33,45 @@ PluginImporter:
Exclude XboxOne: 0
Exclude iOS: 0
Exclude tvOS: 0
- first:
Editor: Editor
second:
Editor:
enabled: 0
settings:
DefaultValueInitialized: true
- first:
PS4: PS4
second:
N3DS:
enabled: 1
settings: {}
- first:
WebGL: WebGL
second:
PS4:
enabled: 1
settings: {}
- first:
Windows Store Apps: WindowsStoreApps
second:
PSM:
enabled: 1
settings: {}
PSP2:
enabled: 1
settings: {}
SamsungTV:
enabled: 1
settings: {}
Tizen:
enabled: 1
settings: {}
WebGL:
enabled: 1
settings: {}
WiiU:
enabled: 1
settings: {}
WindowsStoreApps:
enabled: 1
settings:
CPU: AnyCPU
- first:
XboxOne: XboxOne
second:
XboxOne:
enabled: 1
settings: {}
- first:
iPhone: iOS
second:
enabled: 0
iOS:
enabled: 1
settings: {}
- first:
tvOS: tvOS
second:
tvOS:
enabled: 1
settings: {}
userData:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 5978f8f3dd274e848fbb7a123bde0a6f
timeCreated: 1488828285
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,49 +1,17 @@
fileFormatVersion: 2
guid: d2a8f0021d6b47c5923d8972dfb81ef1
timeCreated: 1488828285
PluginImporter:
externalObjects: {}
serializedVersion: 2
serializedVersion: 1
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
: Linux
second:
Android:
enabled: 1
settings: {}
- first:
: LinuxUniversal
second:
enabled: 1
settings: {}
- first:
: OSXIntel
second:
enabled: 1
settings: {}
- first:
: OSXIntel64
second:
enabled: 1
settings: {}
- first:
: PSM
second:
enabled: 0
settings: {}
- first:
Android: Android
second:
enabled: 1
settings: {}
- first:
Any:
second:
enabled: 0
settings:
Exclude Android: 0
@ -68,47 +36,41 @@ PluginImporter:
Exclude XboxOne: 1
Exclude iOS: 1
Exclude tvOS: 1
- first:
Editor: Editor
second:
Editor:
enabled: 0
settings:
DefaultValueInitialized: true
- first:
Standalone: Linux64
second:
Linux:
enabled: 1
settings:
CPU:
- first:
Standalone: OSXUniversal
second:
settings: {}
Linux64:
enabled: 1
settings:
CPU:
- first:
Standalone: Win
second:
settings: {}
LinuxUniversal:
enabled: 1
settings:
CPU:
- first:
Standalone: Win64
second:
settings: {}
OSXIntel:
enabled: 1
settings:
CPU:
- first:
Windows Store Apps: WindowsStoreApps
second:
settings: {}
OSXIntel64:
enabled: 1
settings: {}
OSXUniversal:
enabled: 1
settings: {}
PSM:
enabled: 0
settings: {}
Win:
enabled: 1
settings: {}
Win64:
enabled: 1
settings: {}
WindowsStoreApps:
enabled: 0
settings:
CPU: AnyCPU
- first:
iPhone: iOS
second:
enabled: 1
settings: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: d2a8f0021d6b47c5923d8972dfb80a6f
timeCreated: 1488828285
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,49 +1,17 @@
fileFormatVersion: 2
guid: 1e0a9643dc0d4b46bf2321f72c4e503e
timeCreated: 1488828285
PluginImporter:
externalObjects: {}
serializedVersion: 2
serializedVersion: 1
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
: Linux
second:
Android:
enabled: 1
settings: {}
- first:
: LinuxUniversal
second:
enabled: 1
settings: {}
- first:
: OSXIntel
second:
enabled: 1
settings: {}
- first:
: OSXIntel64
second:
enabled: 1
settings: {}
- first:
: PSM
second:
enabled: 0
settings: {}
- first:
Android: Android
second:
enabled: 1
settings: {}
- first:
Any:
second:
enabled: 0
settings:
Exclude Android: 0
@ -68,47 +36,41 @@ PluginImporter:
Exclude XboxOne: 1
Exclude iOS: 1
Exclude tvOS: 1
- first:
Editor: Editor
second:
Editor:
enabled: 0
settings:
DefaultValueInitialized: true
- first:
Standalone: Linux64
second:
Linux:
enabled: 1
settings:
CPU:
- first:
Standalone: OSXUniversal
second:
settings: {}
Linux64:
enabled: 1
settings:
CPU:
- first:
Standalone: Win
second:
settings: {}
LinuxUniversal:
enabled: 1
settings:
CPU:
- first:
Standalone: Win64
second:
settings: {}
OSXIntel:
enabled: 1
settings:
CPU:
- first:
Windows Store Apps: WindowsStoreApps
second:
settings: {}
OSXIntel64:
enabled: 1
settings: {}
OSXUniversal:
enabled: 1
settings: {}
PSM:
enabled: 0
settings: {}
Win:
enabled: 1
settings: {}
Win64:
enabled: 1
settings: {}
WindowsStoreApps:
enabled: 0
settings:
CPU: AnyCPU
- first:
iPhone: iOS
second:
enabled: 1
settings: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 1e0a9643dc0d4b46bf2321f72c4e0a6f
timeCreated: 1488828285
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,7 +1,6 @@
fileFormatVersion: 2
guid: 47a84ebde4ec47fabb620b30cc7a3e5c
timeCreated: 1488828285
licenseType: Store
PluginImporter:
serializedVersion: 1
iconMap: {}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 47a84ebde4ec47fabb620b30cc7a0a6f
timeCreated: 1488828285
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,7 +1,6 @@
fileFormatVersion: 2
guid: 47a84ebde4ec47fabb620b30cc7a096f
timeCreated: 1488828285
licenseType: Store
DefaultImporter:
userData:
assetBundleName:

View File

@ -1,7 +1,6 @@
fileFormatVersion: 2
guid: a4865f1ab4504ed8a368670db22f409c
timeCreated: 1488828285
licenseType: Store
PluginImporter:
serializedVersion: 1
iconMap: {}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: a4865f1ab4504ed8a368670db22f0a6f
timeCreated: 1488828285
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,7 +1,6 @@
fileFormatVersion: 2
guid: a4865f1ab4504ed8a368670db22f096f
timeCreated: 1488828285
licenseType: Store
DefaultImporter:
userData:
assetBundleName:

View File

@ -0,0 +1,46 @@
fileFormatVersion: 2
guid: 61824742f78323c439d83403f8272d41
timeCreated: 1488828285
PluginImporter:
serializedVersion: 1
iconMap: {}
executionOrder: {}
isPreloaded: 0
isOverridable: 0
platformData:
Any:
enabled: 0
settings:
Exclude Android: 1
Exclude Editor: 0
Exclude Linux: 1
Exclude Linux64: 1
Exclude LinuxUniversal: 1
Exclude N3DS: 1
Exclude OSXIntel: 1
Exclude OSXIntel64: 1
Exclude OSXUniversal: 1
Exclude PS4: 1
Exclude PSM: 1
Exclude PSP2: 1
Exclude SamsungTV: 1
Exclude Tizen: 1
Exclude WebGL: 1
Exclude WiiU: 1
Exclude Win: 1
Exclude Win64: 1
Exclude WindowsStoreApps: 1
Exclude XboxOne: 1
Exclude iOS: 1
Exclude tvOS: 1
Editor:
enabled: 1
settings:
DefaultValueInitialized: true
WindowsStoreApps:
enabled: 0
settings:
CPU: AnyCPU
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 61824742f78323c439d83403f8270e6f
timeCreated: 1488828285
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,7 +1,6 @@
fileFormatVersion: 2
guid: 74721b9f0af448f5ae2e91102a1a5edd
timeCreated: 1488828285
licenseType: Store
PluginImporter:
serializedVersion: 1
iconMap: {}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 74721b9f0af448f5ae2e91102a1a0a6f
timeCreated: 1488828285
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,7 +1,6 @@
fileFormatVersion: 2
guid: 74721b9f0af448f5ae2e91102a1a096f
timeCreated: 1488828285
licenseType: Store
DefaultImporter:
userData:
assetBundleName:

View File

@ -1,7 +1,6 @@
fileFormatVersion: 2
guid: 5f3147f7af4c49739579b966c458f5e4
timeCreated: 1488828285
licenseType: Store
PluginImporter:
serializedVersion: 1
iconMap: {}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 5f3147f7af4c49739579b966c4580a6f
timeCreated: 1488828285
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,7 +1,6 @@
fileFormatVersion: 2
guid: 5f3147f7af4c49739579b966c458096f
timeCreated: 1488828285
licenseType: Store
DefaultImporter:
userData:
assetBundleName:

View File

@ -1,7 +1,6 @@
fileFormatVersion: 2
guid: 5c65184932ff4fd48a343e2360256baf
timeCreated: 1488828285
licenseType: Store
PluginImporter:
serializedVersion: 1
iconMap: {}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 5c65184932ff4fd48a343e2360250a6f
timeCreated: 1488828285
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,7 +1,6 @@
fileFormatVersion: 2
guid: 5c65184932ff4fd48a343e236025096f
timeCreated: 1488828285
licenseType: Store
DefaultImporter:
userData:
assetBundleName:

View File

@ -1,7 +1,6 @@
fileFormatVersion: 2
guid: 4873f2a8bdae42baa0406e8a61366ca1
timeCreated: 1488828285
licenseType: Store
PluginImporter:
serializedVersion: 1
iconMap: {}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 4873f2a8bdae42baa0406e8a61360a6f
timeCreated: 1488828285
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@ -54,6 +54,14 @@
</summary>
<param name="color">The color.</param>
</member>
<member name="M:Sirenix.Utilities.ColorExtensions.PerceivedLuminosity(UnityEngine.Color,System.Boolean)">
<summary>
Gets the perceived luminosity of a given <see cref="T:UnityEngine.Color"/>.
</summary>
<param name="color">The current <see cref="T:UnityEngine.Color"/>.</param>
<param name="includeAlpha">Determines if the <see cref="F:UnityEngine.Color.a">Color.a</see> value should impact the result.</param>
<returns>The <see cref="T:System.Single">float</see> value representing the luminosity.</returns>
</member>
<member name="T:Sirenix.Utilities.DelegateExtensions">
<summary>
Delegate method extensions.
@ -270,16 +278,6 @@
<param name="source">The collection.</param>
<param name="converter">Func to convert the items.</param>
</member>
<member name="M:Sirenix.Utilities.LinqExtensions.ToHashSet``1(System.Collections.Generic.IEnumerable{``0})">
<summary>
Convert a colletion to a HashSet.
</summary>
</member>
<member name="M:Sirenix.Utilities.LinqExtensions.ToHashSet``1(System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEqualityComparer{``0})">
<summary>
Convert a colletion to a HashSet.
</summary>
</member>
<member name="M:Sirenix.Utilities.LinqExtensions.ToImmutableList``1(System.Collections.Generic.IEnumerable{``0})">
<summary>
Convert a collection to an immutable list.
@ -489,6 +487,41 @@
Sorts an IList
</summary>
</member>
<member name="T:Sirenix.Utilities.ListExtensions">
<summary>
Various list extension methods.
</summary>
</member>
<member name="M:Sirenix.Utilities.ListExtensions.SetLength``1(System.Collections.Generic.IList{``0}@,System.Int32)">
<summary>
Increases or decrease the number of items in the list to the specified count.
</summary>
<param name="list">The list.</param>
<param name="length">The new length.</param>
</member>
<member name="M:Sirenix.Utilities.ListExtensions.SetLength``1(System.Collections.Generic.IList{``0}@,System.Int32,System.Func{``0})">
<summary>
Increases or decrease the number of items in the list to the specified count.
</summary>
<param name="list">The list.</param>
<param name="length">The new length.</param>
<param name="newElement">Value of new elements.</param>
</member>
<member name="M:Sirenix.Utilities.ListExtensions.SetLength``1(System.Collections.Generic.IList{``0},System.Int32)">
<summary>
Increases or decrease the number of items in the list to the specified count.
</summary>
<param name="list">The list.</param>
<param name="length">The new length.</param>
</member>
<member name="M:Sirenix.Utilities.ListExtensions.SetLength``1(System.Collections.Generic.IList{``0},System.Int32,System.Func{``0})">
<summary>
Increases or decrease the number of items in the list to the specified count.
</summary>
<param name="list">The list.</param>
<param name="length">The new length.</param>
<param name="newElement">Value of new elements.</param>
</member>
<member name="T:Sirenix.Utilities.MemberInfoExtensions">
<summary>
MemberInfo method extensions.
@ -808,7 +841,7 @@
<member name="T:Sirenix.Utilities.RectExtensions">
<summary>
Defines a collection of handy Rect transformation methods, that can chained together for complex behaviour.
Note that no method defined here changes the original Rect, but instead returns a new transformed Rect.
Note that only the TakeX method defined here actually change the original Rect; the rest instead return a new transformed Rect.
</summary>
</member>
<member name="M:Sirenix.Utilities.RectExtensions.SetWidth(UnityEngine.Rect,System.Single)">
@ -833,6 +866,13 @@
<param name="width">The desired width of the new Rect.</param>
<param name="height">The desired height of the new Rect.</param>
</member>
<member name="M:Sirenix.Utilities.RectExtensions.SetSize(UnityEngine.Rect,System.Single)">
<summary>
Returns a Rect with the specified size.
</summary>
<param name="rect">The original Rect.</param>
<param name="widthAndHeight">The desired width and height of the new Rect.</param>
</member>
<member name="M:Sirenix.Utilities.RectExtensions.SetSize(UnityEngine.Rect,UnityEngine.Vector2)">
<summary>
Returns a Rect with the specified size.
@ -1296,6 +1336,13 @@
<param name="rect">The original Rect.</param>
<param name="pos">The position to expand the rect towards.</param>
</member>
<member name="M:Sirenix.Utilities.RectExtensions.IsPlaceholder(UnityEngine.Rect)">
<summary>
Determines if an <see cref="T:UnityEngine.Rect"/> is a placeholder; usually (0, 0, 1, 1) in Layout.
</summary>
<param name="rect">The original <see cref="T:UnityEngine.Rect"/>.</param>
<returns><c>true</c> if the <see cref="T:UnityEngine.Rect"/> is equal to (0, 0, 0, 0) or (0, 0, 1, 1); otherwise <c>false</c>.</returns>
</member>
<member name="T:Sirenix.Utilities.StringExtensions">
<summary>
String method extensions.
@ -1323,6 +1370,11 @@
<param name="str">The string to check.</param>
<returns><c>true</c> if this string is null, empty, or contains only whitespace; otherwise, <c>false</c>.</returns>
</member>
<member name="M:Sirenix.Utilities.StringExtensions.CalculateLevenshteinDistance(System.String,System.String)">
<summary>
O(n*m) - Use with care.
</summary>
</member>
<member name="T:Sirenix.Utilities.TypeExtensions">
<summary>
Type method extensions.
@ -1331,7 +1383,6 @@
<member name="F:Sirenix.Utilities.TypeExtensions.TypeNameAlternatives">
<summary>
Type name alias lookup.
TypeNameAlternatives["Single"] will give you "float", "UInt16" will give you "ushort", "Boolean[]" will give you "bool[]" etc..
</summary>
</member>
<member name="M:Sirenix.Utilities.TypeExtensions.IsValidIdentifier(System.String)">
@ -1493,11 +1544,6 @@
Returns a lazy enumerable of all the base classes of this type
</summary>
</member>
<member name="M:Sirenix.Utilities.TypeExtensions.TypeNameGauntlet(System.Type)">
<summary>
Used to filter out unwanted type names. Ex "int" instead of "Int32"
</summary>
</member>
<member name="M:Sirenix.Utilities.TypeExtensions.GetNiceName(System.Type)">
<summary>
Returns a nicely formatted name of a type.
@ -1694,6 +1740,40 @@
<param name="identifier">The identifier to check.</param>
<returns><c>true</c> if the string is a C# keyword. Otherwise <c>false</c>.</returns>
</member>
<member name="M:Sirenix.Utilities.TypeExtensions.HasDefaultConstructor(System.Type)">
<summary>
<para>Determines if a given <see cref="T:System.Type"/> has a default constructor.</para>
<para>A type is considered to have a default constructor if: It is a string, if it is an array, if it is a value type or if it has a public parameterless constructor.</para>
</summary>
<param name="self">The <see cref="T:System.Type"/> to investigate.</param>
<returns><c>true</c> if a default constructor has been found; otherwise <c>false</c>.</returns>
</member>
<member name="M:Sirenix.Utilities.TypeExtensions.InstantiateDefault(System.Type,System.Boolean)">
<summary>
Attempts to instantiate an object of a given <see cref="T:System.Type"/> with it's default constructor. If no default constructor is found then it attempts to find the most suitable alternative constructor and instantiate the <see cref="T:System.Type"/> with default parameters.
</summary>
<param name="type">The <see cref="T:System.Type"/> to instantiate.</param>
<param name="preferUninitializedOverNonDefault">Determines if the use of <see cref="M:System.Runtime.Serialization.FormatterServices.GetUninitializedObject(System.Type)"/> is preferred over a non-default constructor call.</param>
<returns>The instantiated object or <c>null</c> if no suitable alternative constructor is found.</returns>
</member>
<member name="M:Sirenix.Utilities.TypeExtensions.FindIdealConstructor(System.Type,System.Reflection.BindingFlags)">
<summary>
Weighs multiple constructors for a given type, and attempts to find the most ideal constructor. This will ignore any unmanaged constructors.
</summary>
<param name="type">The <see cref="T:System.Type"/> to weigh the constructors of.</param>
<param name="flags">The <see cref="T:System.Reflection.BindingFlags"/> to search for the constructors; <see cref="F:System.Reflection.BindingFlags.Default"/> means only find the public ones.</param>
<returns>The most ideal <see cref="T:System.Reflection.ConstructorInfo"/> based on the scoring system.</returns>
<remarks>The scoring system prefers value types over reference types (adjusted for default values),
it provides bonuses for empty constructors or constructors solely consisting of default values.
Lastly it considers the amount of parameters present in the constructor in the overall score. </remarks>
</member>
<member name="M:Sirenix.Utilities.TypeExtensions.IsUnmanagedCtor(System.Reflection.ConstructorInfo)">
<summary>
Checks if a given <see cref="T:System.Reflection.ConstructorInfo"/> is unmanaged, by checking if it contains any <see cref="P:System.Type.IsPointer"/>, <see cref="P:System.Type.IsByRef"/> or <see cref="P:System.Type.IsMarshalByRef"/> parameters.
</summary>
<param name="ctor">The <see cref="T:System.Reflection.ConstructorInfo"/> to validate.</param>
<returns><c>true</c> if the <see cref="T:System.Reflection.ConstructorInfo"/> is unmanaged; otherwise <c>false</c>.</returns>
</member>
<member name="T:Sirenix.Utilities.UnityExtensions">
<summary>
Extends various Unity classes.
@ -2245,6 +2325,16 @@
Opens the config in a editor window. This is currently only used internally by the Sirenix.OdinInspector.Editor assembly.
</summary>
</member>
<member name="P:Sirenix.Utilities.GlobalConfigUtility`1.HasInstanceLoaded">
<summary>
Gets a value indicating whether this instance has instance loaded.
</summary>
</member>
<member name="M:Sirenix.Utilities.GlobalConfigUtility`1.GetInstance(System.String,System.String)">
<summary>
Gets the singleton instance.
</summary>
</member>
<member name="T:Sirenix.Utilities.GlobalConfigAttribute">
<summary>
<para>This attribute is used by classes deriving from GlobalConfig and specifies the asset path for the generated config file.</para>
@ -2648,41 +2738,6 @@
Gets the index of an item.
</summary>
</member>
<member name="T:Sirenix.Utilities.ListExtensions">
<summary>
Various list extension methods.
</summary>
</member>
<member name="M:Sirenix.Utilities.ListExtensions.SetLength``1(System.Collections.Generic.IList{``0}@,System.Int32)">
<summary>
Increases or decrease the number of items in the list to the specified count.
</summary>
<param name="list">The list.</param>
<param name="length">The new length.</param>
</member>
<member name="M:Sirenix.Utilities.ListExtensions.SetLength``1(System.Collections.Generic.IList{``0}@,System.Int32,System.Func{``0})">
<summary>
Increases or decrease the number of items in the list to the specified count.
</summary>
<param name="list">The list.</param>
<param name="length">The new length.</param>
<param name="newElement">Value of new elements.</param>
</member>
<member name="M:Sirenix.Utilities.ListExtensions.SetLength``1(System.Collections.Generic.IList{``0},System.Int32)">
<summary>
Increases or decrease the number of items in the list to the specified count.
</summary>
<param name="list">The list.</param>
<param name="length">The new length.</param>
</member>
<member name="M:Sirenix.Utilities.ListExtensions.SetLength``1(System.Collections.Generic.IList{``0},System.Int32,System.Func{``0})">
<summary>
Increases or decrease the number of items in the list to the specified count.
</summary>
<param name="list">The list.</param>
<param name="length">The new length.</param>
<param name="newElement">Value of new elements.</param>
</member>
<member name="T:Sirenix.Utilities.MathUtilities">
<summary>
Collection of math function.
@ -2953,98 +3008,6 @@
Clamps and wraps an angle between two values.
</summary>
</member>
<member name="T:Sirenix.Utilities.MultiDimArrayUtilities">
<summary>
Contains utilities for operating on arrays multi-dimentional arrays.
</summary>
</member>
<member name="M:Sirenix.Utilities.MultiDimArrayUtilities.InsertOneColumnLeft``1(``0[0:,0:],System.Int32)">
<summary>
Inserts one column left of the specified column index.
</summary>
<typeparam name="TElement">The type of the element.</typeparam>
<param name="columnIndex">Index of the column.</param>
<param name="array">The array.</param>
</member>
<member name="M:Sirenix.Utilities.MultiDimArrayUtilities.InsertOneColumnRight``1(``0[0:,0:],System.Int32)">
<summary>
Inserts one column right of the specified column index.
</summary>
<typeparam name="TElement">The type of the element.</typeparam>
<param name="columnIndex">Index of the column.</param>
<param name="arr">The arr.</param>
</member>
<member name="M:Sirenix.Utilities.MultiDimArrayUtilities.InsertOneRowAbove``1(``0[0:,0:],System.Int32)">
<summary>
Inserts one row above the specified row index.
</summary>
<typeparam name="TElement">The type of the element.</typeparam>
<param name="array">The array.</param>
<param name="rowIndex">The row index.</param>
</member>
<member name="M:Sirenix.Utilities.MultiDimArrayUtilities.InsertOneRowBelow``1(``0[0:,0:],System.Int32)">
<summary>
Inserts one row below the specified row index.
</summary>
<typeparam name="TElement">The type of the element.</typeparam>
<param name="array">The array.</param>
<param name="rowIndex">Index of the row.</param>
</member>
<member name="M:Sirenix.Utilities.MultiDimArrayUtilities.DuplicateColumn``1(``0[0:,0:],System.Int32)">
<summary>
Duplicates the column.
</summary>
<typeparam name="TElement">The type of the element.</typeparam>
<param name="columnIndex">Index of the column.</param>
<param name="array">The array.</param>
</member>
<member name="M:Sirenix.Utilities.MultiDimArrayUtilities.DuplicateRow``1(``0[0:,0:],System.Int32)">
<summary>
Duplicates the row.
</summary>
<typeparam name="TElement">The type of the element.</typeparam>
<param name="array">The array.</param>
<param name="rowIndex">Index of the row.</param>
</member>
<member name="M:Sirenix.Utilities.MultiDimArrayUtilities.MoveColumn``1(``0[0:,0:],System.Int32,System.Int32)">
<summary>
Moves a column.
</summary>
<typeparam name="TElement">The type of the element.</typeparam>
<param name="array">The array.</param>
<param name="fromColumn">From column.</param>
<param name="toColumn">To column.</param>
</member>
<member name="M:Sirenix.Utilities.MultiDimArrayUtilities.MoveRow``1(``0[0:,0:],System.Int32,System.Int32)">
<summary>
Moves a row.
</summary>
<typeparam name="TElement">The type of the element.</typeparam>
<param name="array">The array.</param>
<param name="fromRow">From row.</param>
<param name="toRow">To row.</param>
</member>
<member name="M:Sirenix.Utilities.MultiDimArrayUtilities.DeleteColumn``1(``0[0:,0:],System.Int32)">
<summary>
Deletes a column.
</summary>
<typeparam name="TElement">The type of the element.</typeparam>
<param name="array">The array.</param>
<param name="columnIndex">Index of the column.</param>
</member>
<member name="M:Sirenix.Utilities.MultiDimArrayUtilities.DeleteRow``1(``0[0:,0:],System.Int32)">
<summary>
Deletes the row.
</summary>
<typeparam name="TElement">The type of the element.</typeparam>
<param name="array">The array.</param>
<param name="rowIndex">Index of the row.</param>
</member>
<member name="T:Sirenix.Utilities.PersistentAssemblyAttribute">
<summary>
Indicates a persistent assembly.
</summary>
</member>
<member name="T:Sirenix.Utilities.MemberAliasFieldInfo">
<summary>
Provides a methods of representing imaginary fields which are unique to serialization.
@ -3482,6 +3445,118 @@
<param name="index">The indices to use.</param>
<param name="culture">The culture to use.</param>
</member>
<member name="T:Sirenix.Utilities.MultiDimArrayUtilities">
<summary>
Contains utilities for operating on arrays multi-dimentional arrays.
</summary>
</member>
<member name="M:Sirenix.Utilities.MultiDimArrayUtilities.InsertOneColumnLeft``1(``0[0:,0:],System.Int32)">
<summary>
Inserts one column left of the specified column index.
</summary>
<typeparam name="TElement">The type of the element.</typeparam>
<param name="columnIndex">Index of the column.</param>
<param name="array">The array.</param>
</member>
<member name="M:Sirenix.Utilities.MultiDimArrayUtilities.InsertOneColumnRight``1(``0[0:,0:],System.Int32)">
<summary>
Inserts one column right of the specified column index.
</summary>
<typeparam name="TElement">The type of the element.</typeparam>
<param name="columnIndex">Index of the column.</param>
<param name="arr">The arr.</param>
</member>
<member name="M:Sirenix.Utilities.MultiDimArrayUtilities.InsertOneRowAbove``1(``0[0:,0:],System.Int32)">
<summary>
Inserts one row above the specified row index.
</summary>
<typeparam name="TElement">The type of the element.</typeparam>
<param name="array">The array.</param>
<param name="rowIndex">The row index.</param>
</member>
<member name="M:Sirenix.Utilities.MultiDimArrayUtilities.InsertOneRowBelow``1(``0[0:,0:],System.Int32)">
<summary>
Inserts one row below the specified row index.
</summary>
<typeparam name="TElement">The type of the element.</typeparam>
<param name="array">The array.</param>
<param name="rowIndex">Index of the row.</param>
</member>
<member name="M:Sirenix.Utilities.MultiDimArrayUtilities.DuplicateColumn``1(``0[0:,0:],System.Int32)">
<summary>
Duplicates the column.
</summary>
<typeparam name="TElement">The type of the element.</typeparam>
<param name="columnIndex">Index of the column.</param>
<param name="array">The array.</param>
</member>
<member name="M:Sirenix.Utilities.MultiDimArrayUtilities.DuplicateRow``1(``0[0:,0:],System.Int32)">
<summary>
Duplicates the row.
</summary>
<typeparam name="TElement">The type of the element.</typeparam>
<param name="array">The array.</param>
<param name="rowIndex">Index of the row.</param>
</member>
<member name="M:Sirenix.Utilities.MultiDimArrayUtilities.MoveColumn``1(``0[0:,0:],System.Int32,System.Int32)">
<summary>
Moves a column.
</summary>
<typeparam name="TElement">The type of the element.</typeparam>
<param name="array">The array.</param>
<param name="fromColumn">From column.</param>
<param name="toColumn">To column.</param>
</member>
<member name="M:Sirenix.Utilities.MultiDimArrayUtilities.MoveRow``1(``0[0:,0:],System.Int32,System.Int32)">
<summary>
Moves a row.
</summary>
<typeparam name="TElement">The type of the element.</typeparam>
<param name="array">The array.</param>
<param name="fromRow">From row.</param>
<param name="toRow">To row.</param>
</member>
<member name="M:Sirenix.Utilities.MultiDimArrayUtilities.DeleteColumn``1(``0[0:,0:],System.Int32)">
<summary>
Deletes a column.
</summary>
<typeparam name="TElement">The type of the element.</typeparam>
<param name="array">The array.</param>
<param name="columnIndex">Index of the column.</param>
</member>
<member name="M:Sirenix.Utilities.MultiDimArrayUtilities.DeleteRow``1(``0[0:,0:],System.Int32)">
<summary>
Deletes the row.
</summary>
<typeparam name="TElement">The type of the element.</typeparam>
<param name="array">The array.</param>
<param name="rowIndex">Index of the row.</param>
</member>
<member name="T:Sirenix.Utilities.PersistentAssemblyAttribute">
<summary>
Indicates a persistent assembly.
</summary>
</member>
<member name="T:Sirenix.Utilities.ReferenceEqualityComparer`1">
<summary>
Compares objects by reference only, ignoring equality operators completely. This is used by the property tree reference dictionaries to keep track of references.
</summary>
</member>
<member name="F:Sirenix.Utilities.ReferenceEqualityComparer`1.Default">
<summary>
A default, cached instance of this generic variant of the reference equality comparer.
</summary>
</member>
<member name="M:Sirenix.Utilities.ReferenceEqualityComparer`1.Equals(`0,`0)">
<summary>
Returns true if the object references are equal.
</summary>
</member>
<member name="M:Sirenix.Utilities.ReferenceEqualityComparer`1.GetHashCode(`0)">
<summary>
Returns the result of the object's own GetHashCode method.
</summary>
</member>
<member name="T:Sirenix.Utilities.SirenixAssetPaths">
<summary>
Paths to Sirenix assets.
@ -3634,25 +3709,5 @@
Not yet documented.
</summary>
</member>
<member name="T:Sirenix.Utilities.ReferenceEqualityComparer`1">
<summary>
Compares objects by reference only, ignoring equality operators completely. This is used by the property tree reference dictionaries to keep track of references.
</summary>
</member>
<member name="F:Sirenix.Utilities.ReferenceEqualityComparer`1.Default">
<summary>
A default, cached instance of this generic variant of the reference equality comparer.
</summary>
</member>
<member name="M:Sirenix.Utilities.ReferenceEqualityComparer`1.Equals(`0,`0)">
<summary>
Returns true if the object references are equal.
</summary>
</member>
<member name="M:Sirenix.Utilities.ReferenceEqualityComparer`1.GetHashCode(`0)">
<summary>
Returns the result of the object's own GetHashCode method.
</summary>
</member>
</members>
</doc>

View File

@ -1,7 +1,6 @@
fileFormatVersion: 2
guid: 4873f2a8bdae42baa0406e8a6136096f
timeCreated: 1488828285
licenseType: Store
DefaultImporter:
userData:
assetBundleName:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 2373d9909155cae468605be57f69461c
guid: 1bec01331befdea4d9ed9033eabd68f8
timeCreated: 1613046886
TextScriptImporter:
userData:

View File

@ -1,7 +1,6 @@
fileFormatVersion: 2
guid: f597f19f656ba56eae4f6a3a7cc528f4
timeCreated: 1488828285
licenseType: Store
DefaultImporter:
userData:
assetBundleName:

View File

@ -1,7 +1,6 @@
fileFormatVersion: 2
guid: 48e08dc33330d11e9d4a1b246c52e4f6
timeCreated: 1488828285
licenseType: Store
DefaultImporter:
userData:
assetBundleName:

View File

@ -1,7 +1,6 @@
fileFormatVersion: 2
guid: ed09910c0094cb27be8f3ca264680da3
timeCreated: 1488828285
licenseType: Store
DefaultImporter:
userData:
assetBundleName:

View File

@ -1,7 +1,6 @@
fileFormatVersion: 2
guid: cc355dd4cf1e6173beaeb22c2858cbe1
timeCreated: 1488828285
licenseType: Store
DefaultImporter:
userData:
assetBundleName:

View File

@ -0,0 +1,30 @@
Odin Inspector makes use of the Bootstrap icon library.
The library has been packed into the SdfIconAtlas.png
file as SDF data.
Bootstrap is released under the following license:
---
The MIT License (MIT)
Copyright (c) 2011-2018 Twitter, Inc.
Copyright (c) 2011-2018 The Bootstrap Authors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: ed0596395c5e2994b8e285d080341c5e
guid: 3fdc67fad3e362e47b5dd365a0bbdd7f
TextScriptImporter:
externalObjects: {}
userData:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 90eaa0dc28c1934408dc1c02e13a507f
timeCreated: 1628274352
licenseType: Store
TextScriptImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

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

View File

@ -0,0 +1,51 @@
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'
Shader "Hidden/Sirenix/Editor/ExtractSprite"
{
Properties
{
_MainTex("Texture", 2D) = "white" {}
_Color("Color", Color) = (1,1,1,1)
_Rect("Rect", Vector) = (0,0,0,0)
_TexelSize("TexelSize", Vector) = (0,0,0,0)
}
SubShader
{
Blend SrcAlpha OneMinusSrcAlpha
Pass
{
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
#include "UnityCG.cginc"
struct appdata {
float4 vertex : POSITION;
float2 uv : TEXCOORD0;
};
struct v2f {
float2 uv : TEXCOORD0;
float4 vertex : SV_POSITION;
};
sampler2D _MainTex;
float4 _Rect;
v2f vert(appdata v) {
v2f o;
o.vertex = UnityObjectToClipPos(v.vertex);
o.uv = v.uv;
return o;
}
fixed4 frag(v2f i) : SV_Target {
float2 uv = i.uv;
uv *= _Rect.zw;
uv += _Rect.xy;
return tex2D(_MainTex, uv);
}
ENDCG
}
}
}

View File

@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 0675e2791073a4147b190e55f1da7ac2
ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,98 @@
Shader "Hidden/Sirenix/OdinGUIShader"
{
SubShader
{
Lighting Off
Cull Off
ZWrite Off
ZTest Always
Blend SrcAlpha OneMinusSrcAlpha
Pass
{
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
#include "UnityCG.cginc"
struct appdata {
float4 vertex : POSITION;
float2 uv : TEXCOORD0;
};
struct v2f {
float2 uv : TEXCOORD0;
float4 vertex : SV_POSITION;
};
sampler2D _MainTex;
float _SirenixOdin_GreyScale;
float4 _SirenixOdin_GUIColor;
float4 _SirenixOdin_GUIUv;
float4 _SirenixOdin_HueColor;
v2f vert(appdata v) {
v2f o;
o.vertex = UnityObjectToClipPos(v.vertex);
o.uv = v.uv;
return o;
}
float test1(float x, float y) {
if (x >= y) {
return 0;
} else {
return 1;
}
}
float test2(float x, float y) {
return step(x, y);
}
float3 rgb2hsv(float3 c) {
float4 K = float4(0.0, -1.0 / 3.0, 2.0 / 3.0, -1.0);
float4 p = lerp(float4(c.bg, K.wz), float4(c.gb, K.xy), step(c.b, c.g));
float4 q = lerp(float4(p.xyw, c.r), float4(c.r, p.yzx), step(p.x, c.r));
float d = q.x - min(q.w, q.y);
float e = 1.0e-10;
return float3(abs(q.z + (q.w - q.y) / (6.0 * d + e)), d / (q.x + e), q.x);
}
float3 hsv2rgb(float3 c) {
c = float3(c.x, clamp(c.yz, 0.0, 1.0));
float4 K = float4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0);
float3 p = abs(frac(c.xxx + K.xyz) * 6.0 - K.www);
return c.z * lerp(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y);
}
float4 frag(v2f i) : SV_Target {
float2 uv = i.uv;
uv.y = 1 - uv.y;
uv.x = _SirenixOdin_GUIUv.x + uv.x * _SirenixOdin_GUIUv.z;
uv.y = _SirenixOdin_GUIUv.y + uv.y * _SirenixOdin_GUIUv.w;
uv.y = 1 - uv.y;
// Greyscale
float4 col = tex2D(_MainTex, uv);
float3 greyScale = (0.3 * col.r) + (0.59 * col.g) + (0.11 * col.b);
col.rgb = lerp(col.rgb, greyScale, _SirenixOdin_GreyScale);
// Change hue
float3 h = col.rgb;
h = rgb2hsv(h);
float hue = rgb2hsv(_SirenixOdin_HueColor.rgb).x;
h.x = hue;
h = hsv2rgb(h);
col.rgb = lerp(col.rgb, h, _SirenixOdin_HueColor.a);
// Blend color
col *= _SirenixOdin_GUIColor;
return col;
}
ENDCG
}
}
}

View File

@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 7619c1ca61a5ef94ca78ddfa69941dad
ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,57 @@
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'
Shader "Hidden/Sirenix/Editor/GUIIcon"
{
Properties
{
_MainTex("Texture", 2D) = "white" {}
_Color("Color", Color) = (1,1,1,1)
}
SubShader
{
Blend SrcAlpha Zero
Pass
{
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
#include "UnityCG.cginc"
struct appdata {
float4 vertex : POSITION;
float2 uv : TEXCOORD0;
};
struct v2f {
float2 uv : TEXCOORD0;
float4 vertex : SV_POSITION;
};
sampler2D _MainTex;
float4 _Color;
v2f vert(appdata v) {
v2f o;
o.vertex = UnityObjectToClipPos(v.vertex);
o.uv = v.uv;
return o;
}
fixed4 frag(v2f i) : SV_Target {
// drop shadow:
// float texelSize = 1.0 / 34.0;
// float2 shadowUv = clamp(i.uv + float2(-texelSize, texelSize * 2), float2(0, 0), float2(1, 1));
// fixed4 shadow = fixed4(0, 0, 0, tex2D(_MainTex, shadowUv).a);
fixed4 col = _Color;
col.a *= tex2D(_MainTex, i.uv).a;
// drop shadow:
// col = lerp(shadow, col, col.a);
return col;
}
ENDCG
}
}
}

View File

@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 2ad0a53eacb91bd4fbe0dc668bf25e6f
ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,95 @@
Shader "Hidden/Sirenix/SdfIconShader"
{
SubShader
{
Blend SrcAlpha OneMinusSrcAlpha
Pass
{
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
#include "UnityCG.cginc"
struct appdata {
float4 vertex : POSITION;
float2 uv : TEXCOORD0;
};
struct v2f {
float2 uv : TEXCOORD0;
float4 vertex : SV_POSITION;
};
sampler2D _MainTex;
sampler2D _SirenixOdin_SdfTex;
float _SirenixOdin_EdgeOffset;
float4 _SirenixOdin_Color;
float4 _SirenixOdin_BgColor;
float4 _SirenixOdin_Uv;
v2f vert(appdata v) {
v2f o;
o.vertex = UnityObjectToClipPos(v.vertex);
o.uv = v.uv;
return o;
}
float samplePixel(float2 uv) {
return tex2D(_SirenixOdin_SdfTex, uv).a;
}
float linearstep(float lo, float hi, float input) {
float diff = hi - lo;
float offset = input - lo;
return min(1.0, max(0.0, offset / diff));
}
float sampleDist(float2 uv, float dx, float edge, float padding) {
float dist = samplePixel(uv);
float p = -abs((dx * 3072.0) / -padding);
float a = min(1, max(0, edge - p * 0.33333));
float b = max(0, min(1, edge + p * 0.33333));
return smoothstep(b, a, dist);
}
float4 frag(v2f i) : SV_Target {
float2 uv = i.uv;
uv.y = 1 - uv.y;
uv.x = _SirenixOdin_Uv.x + uv.x * _SirenixOdin_Uv.z;
uv.y = _SirenixOdin_Uv.y + uv.y * _SirenixOdin_Uv.w;
uv.y = 1 - uv.y;
float alpha = 0.0;
float edge = 0.5019608 + _SirenixOdin_EdgeOffset;
if (_SirenixOdin_BgColor.a > 0.01) {
float3 colorBg = _SirenixOdin_BgColor.rgb;
float3 colorFg = _SirenixOdin_Color.rgb;
float padding = 8;
float dx = ddx(uv.x);
float2 t = float2(dx * 0.333333, 0);
float3 subDist = float3(
sampleDist(uv.xy - t, dx, edge, padding),
sampleDist(uv.xy, dx, edge, padding),
sampleDist(uv.xy + t, dx, edge, padding));
float3 color = lerp(colorBg, colorFg, clamp(subDist, 0.0, 1.0));
float alpha = min(1, subDist.r + subDist.g + subDist.b);
float4 col = float4(color, alpha * _SirenixOdin_Color.a);
return col;
} else {
float padding = 8;
float dx = ddx(uv.x);
float alpha = sampleDist(uv, dx, edge, padding);
float4 col = _SirenixOdin_Color;
col.a *= alpha;
return col;
}
}
ENDCG
}
}
}

View File

@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 99e0f263ae4ed2d4d962a2e995dff6df
ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

View File

@ -0,0 +1,128 @@
fileFormatVersion: 2
guid: 2a0112a98875dfd488b5d10bdb8a4903
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 11
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 0
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 10
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
applyGammaDecoding: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 16384
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 16384
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 16384
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

View File

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

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: d92d0eb8b980c6d44b5f0e64a620355b
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

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

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: ba1664ec1a0467641a742eaadae146d4
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 6384593779a7421881db64cdb25db4c5
timeCreated: 1718984862

View File

@ -0,0 +1,30 @@
//-----------------------------------------------------------------------
// <copyright file="OdinAddressableReflection.cs" company="Sirenix ApS">
// Copyright (c) Sirenix ApS. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
#if UNITY_EDITOR
#if !SIRENIX_INTERNAL
#pragma warning disable
#endif
using System.Reflection;
using UnityEditor.AddressableAssets.Settings;
namespace Sirenix.OdinInspector.Modules.Addressables.Editor.Internal
{
internal static class OdinAddressableReflection
{
public static FieldInfo AddressableAssetEntry_mGUID_Field;
static OdinAddressableReflection()
{
AddressableAssetEntry_mGUID_Field = typeof(AddressableAssetEntry).GetField("m_GUID", BindingFlags.Instance | BindingFlags.NonPublic);
}
internal static void EnsureConstructed() { }
}
}
#endif

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: c1a8e9ae60bf4edebd0ec6052eb9064e
timeCreated: 1718984883

View File

@ -0,0 +1,46 @@
//-----------------------------------------------------------------------
// <copyright file="OdinAddressableReflectionValidator.cs" company="Sirenix ApS">
// Copyright (c) Sirenix ApS. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
#if UNITY_EDITOR
#if SIRENIX_INTERNAL
using System.Collections;
using System.Reflection;
using Sirenix.OdinInspector.Editor.Validation;
using Sirenix.OdinInspector.Modules.Addressables.Editor.Internal;
[assembly: RegisterValidator(typeof(OdinAddressableReflectionValidator))]
namespace Sirenix.OdinInspector.Modules.Addressables.Editor.Internal
{
public class OdinAddressableReflectionValidator : GlobalValidator
{
public override IEnumerable RunValidation(ValidationResult result)
{
OdinAddressableReflection.EnsureConstructed();
FieldInfo[] fields = typeof(OdinAddressableReflection).GetFields(BindingFlags.Static | BindingFlags.Public);
for (var i = 0; i < fields.Length; i++)
{
if (fields[i].IsLiteral)
{
continue;
}
if (fields[i].GetValue(null) != null)
{
continue;
}
result.AddError($"[Odin Addressable Module]: {fields[i].Name} was not found.");
}
return null;
}
}
}
#endif
#endif

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 97bf306f5a4249b192921db9152934f6
timeCreated: 1718984873

Some files were not shown because too many files have changed in this diff Show More