去掉odin依赖
This commit is contained in:
parent
d729d435d2
commit
e31dda94ce
@ -2,7 +2,6 @@ using System;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using AlicizaX.Editor;
|
using AlicizaX.Editor;
|
||||||
using Sirenix.OdinInspector;
|
|
||||||
using UnityEditor.IMGUI.Controls;
|
using UnityEditor.IMGUI.Controls;
|
||||||
using UnityEditor;
|
using UnityEditor;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|||||||
@ -4,9 +4,6 @@ using AlicizaX;
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
using Object = UnityEngine.Object;
|
using Object = UnityEngine.Object;
|
||||||
#if ODIN_INSPECTOR
|
|
||||||
using Sirenix.OdinInspector;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace AlicizaX.Resource.Runtime
|
namespace AlicizaX.Resource.Runtime
|
||||||
{
|
{
|
||||||
@ -19,25 +16,14 @@ namespace AlicizaX.Resource.Runtime
|
|||||||
Image,
|
Image,
|
||||||
SpriteRender,
|
SpriteRender,
|
||||||
}
|
}
|
||||||
#if ODIN_INSPECTOR
|
|
||||||
[ShowInInspector]
|
|
||||||
#endif
|
|
||||||
private SetType _setType;
|
|
||||||
|
|
||||||
#if ODIN_INSPECTOR
|
[SerializeField] private SetType _setType;
|
||||||
[ShowInInspector]
|
|
||||||
#endif
|
|
||||||
private Image _image;
|
|
||||||
|
|
||||||
#if ODIN_INSPECTOR
|
[SerializeField] private Image _image;
|
||||||
[ShowInInspector]
|
|
||||||
#endif
|
|
||||||
private SpriteRenderer _spriteRenderer;
|
|
||||||
|
|
||||||
#if ODIN_INSPECTOR
|
[SerializeField] private SpriteRenderer _spriteRenderer;
|
||||||
[ShowInInspector]
|
|
||||||
#endif
|
[SerializeField] private Sprite _sprite;
|
||||||
private Sprite _sprite;
|
|
||||||
|
|
||||||
public Object TargetObject { get; set; }
|
public Object TargetObject { get; set; }
|
||||||
|
|
||||||
|
|||||||
@ -1,21 +1,14 @@
|
|||||||
using System;
|
using System;
|
||||||
#if ODIN_INSPECTOR
|
using UnityEngine;
|
||||||
using Sirenix.OdinInspector;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace AlicizaX.Resource.Runtime
|
namespace AlicizaX.Resource.Runtime
|
||||||
{
|
{
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class LoadAssetObject
|
public class LoadAssetObject
|
||||||
{
|
{
|
||||||
#if ODIN_INSPECTOR
|
[SerializeField] public ISetAssetObject AssetObject { get; }
|
||||||
[ShowInInspector]
|
[SerializeField] public UnityEngine.Object AssetTarget { get; }
|
||||||
#endif
|
|
||||||
public ISetAssetObject AssetObject { get; }
|
|
||||||
#if ODIN_INSPECTOR
|
|
||||||
[ShowInInspector]
|
|
||||||
#endif
|
|
||||||
public UnityEngine.Object AssetTarget { get; }
|
|
||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
public bool IsSelect { get; set; }
|
public bool IsSelect { get; set; }
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -8,9 +8,6 @@ using AlicizaX;
|
|||||||
using Cysharp.Threading.Tasks;
|
using Cysharp.Threading.Tasks;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using Object = UnityEngine.Object;
|
using Object = UnityEngine.Object;
|
||||||
#if ODIN_INSPECTOR
|
|
||||||
using Sirenix.OdinInspector;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace AlicizaX.Resource.Runtime
|
namespace AlicizaX.Resource.Runtime
|
||||||
{
|
{
|
||||||
@ -39,9 +36,7 @@ namespace AlicizaX.Resource.Runtime
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 保存加载的图片对象
|
/// 保存加载的图片对象
|
||||||
/// </summary>
|
/// </summary>
|
||||||
#if ODIN_INSPECTOR
|
[SerializeField]
|
||||||
[ShowInInspector]
|
|
||||||
#endif
|
|
||||||
private LinkedList<LoadAssetObject> m_LoadAssetObjectsLinkedList;
|
private LinkedList<LoadAssetObject> m_LoadAssetObjectsLinkedList;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -89,9 +84,6 @@ namespace AlicizaX.Resource.Runtime
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 回收无引用的缓存资产。
|
/// 回收无引用的缓存资产。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
#if ODIN_INSPECTOR
|
|
||||||
[Button("Release Unused")]
|
|
||||||
#endif
|
|
||||||
public void ReleaseUnused()
|
public void ReleaseUnused()
|
||||||
{
|
{
|
||||||
if (m_LoadAssetObjectsLinkedList == null)
|
if (m_LoadAssetObjectsLinkedList == null)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user