Tab
This commit is contained in:
@@ -270,6 +270,12 @@ namespace Demo
|
||||
MyHierarchyItem.GetHierarchyItem().title = this.ScriptName + $"<{m_ScriptType}>";
|
||||
MyHierarchyItem.GetHierarchyItem().target = this;
|
||||
MyHierarchyItem.GetHierarchyItem().ButtonGameObject.GetComponent<Editor.UI.RightClick>().ScriptObjectMenu = OnHierarchyItemRightClick;
|
||||
|
||||
// 增数
|
||||
{
|
||||
EnableScriptableObjectCounter++;
|
||||
AllScriptableObjectCounterHierarchyItem.GetHierarchyItem().text = $"SOC: {ApplyScriptableObjectCounter}/{EnableScriptableObjectCounter}";
|
||||
}
|
||||
}
|
||||
|
||||
#region Hierarchy
|
||||
@@ -295,7 +301,8 @@ namespace Demo
|
||||
public partial class ScriptableObject
|
||||
{
|
||||
public static Dictionary<string, Type> FastScriptableObjectTypen = new();
|
||||
public static int AllScriptableObjectCounter = 0;
|
||||
public static int EnableScriptableObjectCounter = 0;
|
||||
public static int ApplyScriptableObjectCounter = 0;
|
||||
|
||||
public bool IsParseScript2Expr { get; private set; } = false;
|
||||
protected virtual bool IsSelfEnableUpdate { get => true; }
|
||||
@@ -478,8 +485,8 @@ namespace Demo
|
||||
yield return DoSomethingDuringApplyScript();
|
||||
// 增数
|
||||
{
|
||||
AllScriptableObjectCounter++;
|
||||
AllScriptableObjectCounterHierarchyItem.GetHierarchyItem().text = $"ScriptableObjectCount: {AllScriptableObjectCounter}";
|
||||
ApplyScriptableObjectCounter++;
|
||||
AllScriptableObjectCounterHierarchyItem.GetHierarchyItem().text = $"SOC: {ApplyScriptableObjectCounter}/{EnableScriptableObjectCounter}";
|
||||
}
|
||||
// 统计更新能力
|
||||
{
|
||||
@@ -511,8 +518,9 @@ namespace Demo
|
||||
// 清理Cache
|
||||
//
|
||||
// 减数
|
||||
AllScriptableObjectCounter--;
|
||||
AllScriptableObjectCounterHierarchyItem.GetHierarchyItem().text = $"ScriptableObjectCount: {AllScriptableObjectCounter}";
|
||||
ApplyScriptableObjectCounter--;
|
||||
EnableScriptableObjectCounter++;
|
||||
AllScriptableObjectCounterHierarchyItem.GetHierarchyItem().text = $"SOC: {ApplyScriptableObjectCounter}/{EnableScriptableObjectCounter}";
|
||||
}
|
||||
if (MyHierarchyItem != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user