Unity 6.3 support + rewrite Color picker + various fix #28
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
feat: Unity 6.3 compatibility, safe reflection, 1D palette, reliable repaint
Replace ambiguous reflection with exact lookups
Methods: GetMethod("...", types: Type.EmptyTypes)
Properties: GetPropertyExact(type, name, returnType) to avoid AmbiguousMatchException
Resolve members from instances (sceneHierarchy, treeView, data) in RefreshFolderIcons()
Stop eager binding of fragile PropertyInfo/MethodInfo; use name + arity at runtime
Add hard guards in IMGUI path to prevent NRE and GUI clip errors
try/catch around reflection, early returns
Switch to 1D color palette
HierarchyFolderIcon.IconColors : Color[]
pre-tinted variants _openVariants/_closedVariants
GetIcons(storedIndex, out openTex, out closedTex) maps 0=default, 1..N=colors[i-1]
Update InitIfNeeded()
cache only GetAllSceneHierarchyWindows() and sceneHierarchy property
support moved types (UnityEditor.SceneHierarchy or UnityEditor.IMGUI.Controls.SceneHierarchy)
Add ForceRepaint() and ResetFolderIcons()
load default folder icons
rebuild tinted variants on demand
force hierarchy repaint after changes
Fix FolderEditor
use actual serialized field "_colorIndex"
UI is 0-based, storage is 1-based (_colorIndex = popup + 1)
clamp index and show color preview
Align Folder.TryGetIconIndex()
return false if _colorIndex == 0, else index = 1..N expected by GetIcons()
clamp against HierarchyFolderIcon.IconColors.Length
Cleanup
remove old 2D palette logic, tuples, and obsolete caches
remove eager binds for treeView/data/selectedIcon/objectPPTR
add helpers GetPropertyByName and GetPropertyExact
Result: no lag or AmbiguousMatchException on Unity 6.3, colored folder icons apply correctly, inspector changes update the hierarchy immediately.