Skip to content

Project Structure

Overview of the scripts under VirtualList3x/assets/Script and their responsibilities.

Core

PathDescription
Core/VirtualList/index.tsEntry barrel for virtual list exports.
Core/VirtualList/VirtualViewList.tsMain component handling scrolling, visibility and pooling.
Core/VirtualList/VirtualListDataManager.tsData source, size cache, offset queries.
Core/VirtualList/VirtualListNodeManager.tsTemplate registry, node pooling, animation helpers.
Core/VirtualList/VirtualListPerformanceManager.tsPerformance monitor and adaptive tuning.
Core/VirtualList/VirtualListTypes.tsEnums and TypeScript interfaces.
Core/VirtualList/VirtualListUtils.tsLogging utilities and shared helpers.
Core/VirtualList/VirtualCullingViewport.tsOptional viewport culling component for nested lists.
Core/Utils/GameUtils.tsGeneral game utilities.
Core/Utils/NodeInfo/NodeInfo.tsDebug overlay for node details.
Core/Utils/ProfilerInfo/ProfilerInfo.tsIn-game profiler panel.
Core/Utils/Toast/Toast.tsToast UI widget.
Core/Utils/Toast/ToastMgr.tsToast manager logic.

Demo

PathDescription
Demo/Backpack/BackpackList.tsBackpack list controller.
Demo/Backpack/BackpackListData.tsSample data generator.
Demo/Backpack/BackpackItem.tsBackpack item renderer.
Demo/ChatSystem/ChatSystemList.tsChat scroll controller.
Demo/ChatSystem/ChatSystemData.tsChat message definitions.
Demo/ChatSystem/ChatSystemDefend.tsKeyword filtering.
Demo/ChatSystem/ChatSystemItemBase.tsBase class for chat messages.
Demo/ChatSystem/ChatSystemListItemEmoji.tsEmoji message item.
Demo/ChatSystem/ChatSystemListItemText.tsText message item.
Demo/ChatSystem/ChatTextSizeCalculator.tsChat bubble size calculator.
Demo/CommonLayout/CommonLayoutList.tsMixed layout controller.
Demo/CommonLayout/CommonLayoutListData.tsSample data for mixed layout.
Demo/CommonLayout/CommonLayoutListDefind.tsConstants and enums (typo kept to match file name).
Demo/CommonLayout/CommonLayoutListItem.tsGeneric item renderer.
Demo/CommonLayout/CommonLayoutListNestedItem.tsNested virtual list example.
Demo/GameCard/GameCardList.tsCard grid controller.
Demo/GameCard/GameCardListData.tsCard data source.
Demo/GameCard/GameCardListDefind.tsCard definitions.
Demo/GameCard/GameCardListItemBase.tsBase class for card items.
Demo/GameCard/GameCardListItemGrid.tsGrid-style card renderer.
Demo/GameCard/GameCardListItemImg.tsImage-focused card.
Demo/GameCard/GameCardListItemText.tsText-only card.
Demo/RankingList/RankingList.tsRanking list controller.
Demo/RankingList/RankingListData.tsRanking data sample.
Demo/RankingList/RankingListItem.tsRanking item renderer.
Demo/ExampleCollection.tsDemo hub script for quick preview.

These scripts cover both the reusable virtual list core and the showcase demos for typical game UI scenarios.