<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" xsi="http://www.w3.org/2001/XMLSchema-instance" engine="UnityEngine.UIElements" editor="UnityEditor.UIElements" noNamespaceSchemaLocation="../../../../../UIElementsSchema/UIElements.xsd" editor-extension-mode="True">
<ui:VisualElement class="container" style="min-width: 320px; flex-grow: 1;">
<ui:Foldout text="Information" value="false" class="base-foldout">
<ui:Label text="This window helps debug how Unity objects are serialized to JSON for AI consumption. <b>ReflectorNet</b> converts Unity objects (GameObjects, Components, Assets, ScriptableObjects) into structured JSON that AI can understand and work with. <b>Target</b>: Drag any Unity object to test its serialization. <b>Recursive</b>: When enabled, serializes child objects and nested references. Disable for a shallow view. Use this tool to diagnose serialization issues when AI tools report errors or unexpected data. For detailed logs, set <b>Log Level</b> to Debug in the <b><color=red>AI</color> Game Developer</b> window." class="section-desc" />
</ui:Foldout>
<ui:VisualElement class="divider" />
<ui:VisualElement class="row">
<ui:VisualElement>
<uie:ObjectField label="Target" name="target-field" style="flex-grow: 1;" />
<ui:Toggle label="Recursive" name="recursive-toggle" />
</ui:VisualElement>
<ui:Button text="Serialize" name="btn-serialize" class="btn-primary" />
</ui:VisualElement>
<ui:VisualElement class="divider" />
<ui:Label text="Output" name="output-header" class="header" />
<ui:VisualElement class="json-container">
<ui:ListView name="output-list" class="json-text-list" />
<ui:Button text="Copy" name="btn-copy" class="btn-secondary btn-copy" />
</ui:VisualElement>
</ui:VisualElement>
</ui:UXML>