35 lines
595 B
C#
35 lines
595 B
C#
using UnityEngine;
|
|
|
|
namespace DebuggingEssentials
|
|
{
|
|
public struct ScrollViewCullData
|
|
{
|
|
public float scrollWindowPosY;
|
|
|
|
public float culledSpaceY;
|
|
|
|
public float windowHeight;
|
|
|
|
public float rectStartScrollY;
|
|
|
|
public float updatedScrollViewY;
|
|
|
|
public void Start(WindowSettings window)
|
|
{
|
|
scrollWindowPosY = 0f;
|
|
culledSpaceY = 0f;
|
|
windowHeight = window.rect.height;
|
|
rectStartScrollY = window.rectStartScroll.y;
|
|
updatedScrollViewY = window.updatedScrollView.y;
|
|
}
|
|
|
|
public void End()
|
|
{
|
|
if (culledSpaceY > 0f)
|
|
{
|
|
GUILayout.Space(culledSpaceY);
|
|
}
|
|
}
|
|
}
|
|
}
|