EditorTools Sample
An editor window built in code with the package's helpers.


The Reset to defaults button returns the cost and the cooldown to their defaults, and Undo restores them.
Open it
- Import the sample: Tools → Aspid 🐍 → FastTools → Welcome → Samples → Import on EditorTools. It has no scene.
- Open Tools → Aspid 🐍 → FastTools → Samples → Ability Catalog: the abilities are on the left, the selected one on the right.
Try
-
A ListView in one chain. The list is one chain of
ListViewextensions. Type in the search field: the list filters. -
Binding. The fields are bound with
.BindTo(serializedObject). Edit the name: the list and the title follow. -
Property setters. Select Fireball and press Reset to defaults: Mana Cost and Cooldown are applied once, so one Undo reverts both.
serializedObject.FindProperty("_cooldown").Update().SetFloat(AbilityConfig.DefaultCooldown);serializedObject.FindProperty("_manaCost").SetIntAndApply(AbilityConfig.DefaultManaCost); -
The type picker from code. Click Effect:
TypeSelectorWindow.Show()opens the[TypeSelector]picker with theIAbilityEffectclasses only. -
Open the script. Double-click the ability title:
AddOpenScriptCommandopensAbilityConfig.cs. The title's tooltip names the script withGetDisplayName(). -
The FastTools theme. Pick another Theme in Tools → Aspid 🐍 → FastTools → Settings → Appearance:
AddAspidWindowThemerecolors the catalog at once.
Where to look
| File | Shows |
|---|---|
Scripts/Editor/AbilityCatalogWindow.cs | Every call above |
Styles/ | Colors from the theme's --aspid-colors-* tokens |
Scripts/Effects/ | [TypeSelectorDisplay] names, a group and icons |
Reference: VisualElement Extensions, SerializedProperty Extensions, Editor Helpers and TypeSelectorWindow.