导入odin
This commit is contained in:
21
Assets/Obvious/Soap/Core/Runtime/Attributes/AutoTag.cs
Normal file
21
Assets/Obvious/Soap/Core/Runtime/Attributes/AutoTag.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Obvious.Soap.Attributes
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field, AllowMultiple = true)]
|
||||
public class AutoTag : PropertyAttribute
|
||||
{
|
||||
public string Tag { get; }
|
||||
public int TagIndex { get; }
|
||||
|
||||
public AutoTag(string tag)
|
||||
{
|
||||
Tag = tag;
|
||||
}
|
||||
public AutoTag(int tagIndex)
|
||||
{
|
||||
TagIndex = tagIndex;
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/Obvious/Soap/Core/Runtime/Attributes/AutoTag.cs.meta
Normal file
11
Assets/Obvious/Soap/Core/Runtime/Attributes/AutoTag.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 913f53a0ea7032745a8f5d59573865ae
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Obvious.Soap.Attributes
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field)]
|
||||
public class BeginDisabledGroup : PropertyAttribute
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1cf2368cb3484b4287c9693b1774f000
|
||||
timeCreated: 1736292126
|
||||
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Obvious.Soap.Attributes
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field)]
|
||||
public class EndDisabledGroup : PropertyAttribute
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5bd2c68066b34c2b8c448d7dfc474ad3
|
||||
timeCreated: 1736297896
|
||||
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Obvious.Soap.Attributes
|
||||
{
|
||||
/// <summary>
|
||||
/// Marks fields to be injected with a runtime-created variable.
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Field)]
|
||||
public class RuntimeInjectableAttribute : PropertyAttribute
|
||||
{
|
||||
public string Id { get; private set; }
|
||||
|
||||
public RuntimeInjectableAttribute(string id)
|
||||
{
|
||||
Id = id;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5d7328a9d0d01164e9bc10bb2269a820
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Obvious.Soap.Attributes
|
||||
{
|
||||
/// <summary>
|
||||
/// Show a field in the inspector if a condition is met. Hides it otherwise.
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Field, AllowMultiple = true)]
|
||||
public class ShowIfAttribute : PropertyAttribute
|
||||
{
|
||||
public readonly string conditionFieldName;
|
||||
public readonly object comparisonValue;
|
||||
|
||||
public ShowIfAttribute(string conditionFieldName)
|
||||
{
|
||||
this.conditionFieldName = conditionFieldName;
|
||||
}
|
||||
|
||||
public ShowIfAttribute(string conditionFieldName, object comparisonValue = null)
|
||||
{
|
||||
this.conditionFieldName = conditionFieldName;
|
||||
this.comparisonValue = comparisonValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 66cce3e5364ae6449b41b0223e7b9c32
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Obvious.Soap.Attributes
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Field)]
|
||||
public class SubAssetAttribute : PropertyAttribute
|
||||
{
|
||||
public SubAssetAttribute()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 29ca5afb7d107004fad13a379011a7e6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user