您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
38 行
1.0 KiB
38 行
1.0 KiB
namespace UnityEngine.Rendering.UI
|
|
{
|
|
public class DebugUIHandlerVBox : DebugUIHandlerWidget
|
|
{
|
|
DebugUIHandlerContainer m_Container;
|
|
|
|
internal override void SetWidget(DebugUI.Widget widget)
|
|
{
|
|
base.SetWidget(widget);
|
|
m_Container = GetComponent<DebugUIHandlerContainer>();
|
|
}
|
|
|
|
public override bool OnSelection(bool fromNext, DebugUIHandlerWidget previous)
|
|
{
|
|
if (!fromNext && !m_Container.IsDirectChild(previous))
|
|
{
|
|
var lastItem = m_Container.GetLastItem();
|
|
DebugManager.instance.ChangeSelection(lastItem, false);
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
public override DebugUIHandlerWidget Next()
|
|
{
|
|
if (m_Container == null)
|
|
return base.Next();
|
|
|
|
var firstChild = m_Container.GetFirstItem();
|
|
|
|
if (firstChild == null)
|
|
return base.Next();
|
|
|
|
return firstChild;
|
|
}
|
|
}
|
|
}
|