Copyright © 2026 Unity Technologies
Steps to reproduce:
1. Create new Unity project using Universal 3D Template
2. Open Package Manager window and install “com.unity.xr.interaction.toolkit” package
3. Once installed, go to Samples tab and import World Space UI Sample
4. When imported, observe the Console window
Actual results: Warnings are thrown in the Console window
Expected results: No warnings are thrown in the Console window
Reproducible with versions: 3.6.0-pre.1 (6000.7.0a4)
Not reproducible with versions: 3.6.0-pre.1 (6000.6.0b8, 6000.7.0a3)
Tested on (OS): macOS Tahoe 26.6 (M1)
Notes: Editor regression, not a Package regression
Assets/Samples/XR Interaction Toolkit/3.6.0-pre.1/World Space UI/Editor/Scripts/WorldSpaceUISampleProjectValidation.cs(22,18): warning UAL0010: A type with static fields, automatic properties or events must have an AutoStaticsCleanup or NoAutoStaticsCleanup attribute. Static members: s_UIElementsModuleAddRequest, s_BuildValidationRules.
Assets/Samples/XR Interaction Toolkit/3.6.0-pre.1/World Space UI/Editor/Scripts/WorldSpaceUISampleProjectValidation.cs(35,27): warning UAL0013: A type with static fields, automatic properties or events must have an AutoStaticsCleanup or NoAutoStaticsCleanup attribute
Assets/Samples/XR Interaction Toolkit/3.6.0-pre.1/World Space UI/Editor/Scripts/WorldSpaceUISampleProjectValidation.cs(37,51): warning UAL0013: A type with static fields, automatic properties or events must have an AutoStaticsCleanup or NoAutoStaticsCleanup attribute
Assets/Samples/XR Interaction Toolkit/3.6.0-pre.1/World Space UI/Editor/Scripts/WorldSpaceUISampleProjectValidation.cs(35,27): warning UAL0013: A type with static fields, automatic properties or events must have an AutoStaticsCleanup or NoAutoStaticsCleanup attribute
Assets/Samples/XR Interaction Toolkit/3.6.0-pre.1/World Space UI/Editor/Scripts/WorldSpaceUISampleProjectValidation.cs(37,51): warning UAL0013: A type with static fields, automatic properties or events must have an AutoStaticsCleanup or NoAutoStaticsCleanup attribute
Issues you vote on will appear here