πŸ‡ΊπŸ‡Έ English

πŸ‡°πŸ‡· ν•œκ΅­μ–΄

🟨 Overview

CodeTree is an editor extension that untangles and cleans up complex inheritance hierarchies in the Inspector. From inheritance chain visualization and field search to object previews β€” organizing custom inspectors has never been easier.

image.png

https://youtu.be/NSyaAqTauZ0

🟨Quick Start

https://youtu.be/8xXOLZWBoVc

🟑 1. Enable Inheritance Chain View

Add using Ftnara.CodeTree;, then implement ICodeTree on your MonoBehaviour or ScriptableObject.

That's it β€” CodeTree automatically takes over the Inspector.

using UnityEngine;
using Ftnara.CodeTree;

public class PlayerController : MonoBehaviour, ICodeTree
{
    // your fields here
}

🟑 2. Enable Object Field Preview (optional)

Add [CodeTreeIconPeek] above any object reference field to show a thumbnail preview.

Works independently β€” no ICodeTree required.

[CodeTreeIconPeek]
[SerializeField] private Sprite m_Icon;

No further setup needed. No prefab changes, no manager registration, no configuration files.

🟨 Features

  1. Inheritance Chain VisualizationΒ β€” Displays the full inheritance chain of your MonoBehaviour/ScriptableObject as a summary at the top of the Inspector