Files
XRLib/Assets/Resources/UIToolkit/Sample/List/UTKScrollViewSample.uxml

46 lines
2.0 KiB
Plaintext
Raw Normal View History

2026-01-20 20:18:47 +09:00
<?xml version="1.0" encoding="utf-8"?>
<UXML xmlns="UnityEngine.UIElements" xmlns:utk="UVC.UIToolkit">
<Style src="../UTKSampleCommon.uss" />
<Style src="UTKListSample.uss" />
<VisualElement class="utk-sample-container">
<Label class="utk-sample-desc" text="스크롤 뷰 컴포넌트" />
<VisualElement class="utk-sample-section">
<Label class="utk-sample-section__title" text="ScrollViews" />
<VisualElement class="utk-sample-row">
<!-- Vertical Scroll -->
<utk:UTKScrollView name="scroll-vertical" class="utk-sample-scrollview">
<Label text="Vertical Item 1" />
<Label text="Vertical Item 2" />
<Label text="Vertical Item 3" />
<Label text="Vertical Item 4" />
<Label text="Vertical Item 5" />
<Label text="Vertical Item 6" />
<Label text="Vertical Item 7" />
<Label text="Vertical Item 8" />
<Label text="Vertical Item 9" />
<Label text="Vertical Item 10" />
<Label text="Vertical Item 11" />
<Label text="Vertical Item 12" />
<Label text="Vertical Item 13" />
<Label text="Vertical Item 14" />
<Label text="Vertical Item 15" />
</utk:UTKScrollView>
<!-- Horizontal scroll will be created via C# -->
<VisualElement name="horizontal-scroll-container" class="utk-sample-scrollview" />
<!-- Both scroll will be created via C# -->
<VisualElement name="both-scroll-container" class="utk-sample-scrollview" />
</VisualElement>
</VisualElement>
2026-01-21 20:43:54 +09:00
<!-- Code Sample -->
<VisualElement class="utk-code-sample-container">
2026-01-23 19:04:12 +09:00
<utk:UTKCodeBlock name="code-csharp" title="C#" />
<utk:UTKCodeBlock name="code-uxml" title="UXML" />
2026-01-21 20:43:54 +09:00
</VisualElement>
2026-01-20 20:18:47 +09:00
</VisualElement>
</UXML>