导入odin

This commit is contained in:
2026-01-01 23:09:08 +08:00
parent 9ceffccd39
commit 04dd4a23b2
814 changed files with 120820 additions and 87 deletions

View File

@@ -0,0 +1,13 @@
using System.Collections.Generic;
using UnityEngine;
namespace Obvious.Soap
{
/// <summary>
/// Interface to get objects that can be drawn in the inspector
/// </summary>
public interface IDrawObjectsInInspector
{
IReadOnlyList<Object> EditorListeners { get; }
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: e498e4adf2f54a88b454f5402fb01d7f
timeCreated: 1656086814

View File

@@ -0,0 +1,31 @@
using System;
using UnityEngine;
#if ODIN_INSPECTOR
using Sirenix.OdinInspector;
#endif
namespace Obvious.Soap
{
/// <summary>
/// Base classes of all ScriptableObjects in Soap
/// </summary>
#if ODIN_INSPECTOR
public abstract class ScriptableBase : SerializedScriptableObject
#else
public abstract class ScriptableBase : ScriptableObject
#endif
{
internal virtual void Reset()
{
TagIndex = 0;
Description = "";
}
[HideInInspector]
public Action RepaintRequest;
[HideInInspector]
public int TagIndex = 0;
[HideInInspector]
public string Description = "";
public virtual Type GetGenericType { get; }
}
}

View File

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