WuhuIslandTesting/Library/PackageCache/com.unity.addressables@1.21.12/Editor/Diagnostics/GUI/Graph/GraphDefinition.cs
2025-01-07 02:06:59 +01:00

24 lines
637 B
C#

using System;
using UnityEditor.AddressableAssets.Diagnostics.Data;
using UnityEngine;
namespace UnityEditor.AddressableAssets.Diagnostics.GUI.Graph
{
class GraphDefinition
{
int m_MaxValueStream;
internal IGraphLayer[] layers;
internal GraphDefinition(int maxValueStream, IGraphLayer[] l)
{
layers = l;
m_MaxValueStream = maxValueStream;
}
internal int GetMaxValue(EventDataSet e)
{
var stream = e.GetStream(m_MaxValueStream);
return stream == null ? 1 : Mathf.Max(10, (stream.maxValue / 10 + 1) * 10);
}
}
}