Skip to content

Fix WGroup not rendering in Unity 6000.x#193

Merged
wallstop merged 3 commits intomainfrom
copilot/fix-wgroup-render-issue
Feb 7, 2026
Merged

Fix WGroup not rendering in Unity 6000.x#193
wallstop merged 3 commits intomainfrom
copilot/fix-wgroup-render-issue

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 7, 2026

Description

Unity 6 changed CustomEditor attribute behavior, requiring explicit named parameter syntax. WGroup/WButton inspectors were not being applied due to ambiguous boolean parameter interpretation.

Changes:

  • Updated CustomEditor declarations from [CustomEditor(typeof(T), true)] to [CustomEditor(typeof(T), editorForChildClasses: true)] in:
    • WButtonInspector.cs
    • WButtonOdinMonoBehaviourInspector.cs
    • WButtonOdinScriptableObjectInspector.cs

Named parameter syntax resolves Unity 6's stricter attribute parsing while remaining backward compatible with Unity 2021.3+.

Example:

// Before - ambiguous in Unity 6
[CustomEditor(typeof(UnityEngine.Object), true)]

// After - explicit parameter binding
[CustomEditor(typeof(UnityEngine.Object), editorForChildClasses: true)]

Type of Change

  • Bug fix (non-breaking change that fixes an issue)

Checklist

  • I have added tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • I have updated the CHANGELOG
  • My changes do not introduce breaking changes, or breaking changes are documented
Original prompt

This section details on the original issue you should resolve

<issue_title>[Bug]: WGroup Not Working</issue_title>
<issue_description>### Description

WGroup appears to do nothing

Steps to Reproduce

  1. Use WGroup on some serialized fields

Expected Behavior

WGroup renders as appropriate

Actual Behavior

Nothing happens

Unity Version

6000.x

Package Version

3.1.7

Platform

  • Editor
  • Windows
  • macOS
  • Linux
  • iOS
  • Android
  • WebGL
  • Other

Additional Context

No response</issue_description>

<agent_instructions>This is in Unity 6000.x, I've been testing in Unity 2022 (which appears to work)</agent_instructions>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits February 7, 2026 18:11
…ustomEditor attribute

Co-authored-by: wallstop <1045249+wallstop@users.noreply.github.com>
Co-authored-by: wallstop <1045249+wallstop@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix WGroup not rendering as expected Fix WGroup not rendering in Unity 6000.x Feb 7, 2026
Copilot AI requested a review from wallstop February 7, 2026 18:13
@wallstop wallstop marked this pull request as ready for review February 7, 2026 18:23
@wallstop wallstop merged commit 088cd43 into main Feb 7, 2026
26 checks passed
@wallstop wallstop deleted the copilot/fix-wgroup-render-issue branch February 7, 2026 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: WGroup Not Working

2 participants