Figma Importer File Map
Figma Importer File Map Complete inventory of files belonging to the Figma Importer module. C Layer ( ) | File | Class | Role | | | | | | | | Main EditorWindow — UI, workflow orchestration, logging | …
·
1 min read
·
159 字
Figma Importer File Map
Complete inventory of files belonging to the Figma Importer module.
C# Layer (Client/Assets/Editor/FigmaImporter/)
| File |
Class |
Role |
FigmaImporterWindow.cs |
FigmaImporterWindow |
Main EditorWindow — UI, workflow orchestration, logging |
FigmaAPI.cs |
FigmaAPI, FigmaPageInfo, FigmaFileResponse, MiniJSON |
Figma REST API client + URL parser + embedded JSON parser |
FigmaOAuth.cs |
FigmaOAuth |
OAuth 2.0 flow — local HTTP listener, token exchange, EditorPrefs storage |
FigmaNodeParser.cs |
FigmaNodeParser |
Figma JSON → IR tree converter using #prefix_ naming convention |
FigmaIRTypes.cs |
IRRoot, IRNode, IRRect, IRSize, IRTextStyle, IROverride, IRLayoutInfo, IRPadding |
Intermediate Representation data model |
FigmaIRExporter.cs |
FigmaIRExporter |
IR tree → formatted JSON file serializer |
FigmaPrefabGenerator.cs |
FigmaPrefabGenerator |
IR tree → Unity Prefab generator (Image, Text, List, Input, Toggle, Slider, Layout, Prefab ref) |
FigmaConfigWindow.cs |
FigmaConfigWindow |
EditorWindow for editing font/prefab mapping config with drag-and-drop |
Config
| File |
Purpose |
Config/figma_config.json |
Font mapping (fontFamily-weight → TMP asset path) and prefab mapping (p_id → prefab path) |
Referenced Project Assets
| Path |
Referenced By |
Purpose |
Assets/Bundles/UI/Extension/Prefab/CircularList.prefab |
FigmaPrefabGenerator |
Template for vlist, hlist, grid node types |
Assets/Bundles/UI/Common/Template/*.prefab |
figma_config.json prefabMapping |
Prefab mapping targets (buttons, etc.) |
Assets/Bundles/UI/Common/Render/New/*.prefab |
figma_config.json prefabMapping |
Prefab mapping targets (reward renders, etc.) |
Assets/Bundles/Font/Resources/Fonts & Materials/*.asset |
figma_config.json fontMapping |
TMP font assets |
{modulePath}/Atlas/, {modulePath}/Pic/ |
FigmaPrefabGenerator.FindSprite() |
Sprite search directories (module-specific) |
{commonPath}/Atlas/, {commonPath}/Pic/ |
FigmaPrefabGenerator.FindSprite() |
Sprite search directories (shared Common) |
Referenced Project Components
| Type Name |
Used In |
Purpose |
UIEntityWindow |
FigmaPrefabGenerator.Generate() |
Mounted on root prefab node |
NSLGame.UI.CircularList |
FigmaPrefabGenerator.CreateCircularList() |
Scrollable list component |
CircularListRender |
FigmaPrefabGenerator.CreateCircularList() |
List item render component |