You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current MRTK3 Unity project uses the editor version 2021.3.2f1, upgrading to Unity Editor 2022.3.2f1 causes the ExperimentalDrawer.cs file to fail compilation with the error:
ArgumentException: You can only call GUI functions from inside OnGUI.
This results in the components of Theme Provider showing as empty in the Inspector.
When it should be:
To reproduce
Steps to reproduce the behavior:
Open the CoreUXThemingExample scene in Unity Editor 2022.3.2f1 (or later). I haven't tested the editors between 2021.3.2f1 (working) and 2022.3.2f1 (not working)
Go to 'the Theme Provider under SceneContent'
Click on 'Theme Provider'
Open the Console window ''
See error
In the Inspector window you'll see Data Source Provider Singleton; Data Source Theme Provider; and Theme Selector all empty.
Expected behavior
There should be no compile errors and the Inspector window should show all components for the Theme Provider.
Removing the file will fix the compilation error as well as the Inspector window error. The only use for this file is to add the warning message above these components and isn't necessary for the correct operation of the editor.
The text was updated successfully, but these errors were encountered:
Removing the [CustomPropertyDrawer(typeof(ExperimentalAttribute))] from the class will also fix this issue, however the Inspector will not show the warning.
This issue has been migrated a new MRTK repository, and the status of this issue will now be tracked at the following location:
Describe the bug
The current MRTK3 Unity project uses the editor version 2021.3.2f1, upgrading to Unity Editor 2022.3.2f1 causes the ExperimentalDrawer.cs file to fail compilation with the error:
This results in the components of Theme Provider showing as empty in the Inspector.
![image](https://private-user-images.githubusercontent.com/89234545/261708978-d4d2cded-d176-459e-803c-3420902ac87e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk4Mzg5MTEsIm5iZiI6MTczOTgzODYxMSwicGF0aCI6Ii84OTIzNDU0NS8yNjE3MDg5NzgtZDRkMmNkZWQtZDE3Ni00NTllLTgwM2MtMzQyMDkwMmFjODdlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE4VDAwMzAxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTEzYTU5MjkwMTgxZjllMzBjY2U2Y2I2NzZiMTk1ZDVkYzU0ZTZmODRlNTU1NGM4ZTIxNzFhMDNjMTdlNGJmMjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.avHs9JTzJSKLnG5KPyiGgIolNT-TS9pKKAuP-u0rn9A)
When it should be:
![image](https://private-user-images.githubusercontent.com/89234545/261709096-037f2c45-536f-472a-9954-f598e722804a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk4Mzg5MTEsIm5iZiI6MTczOTgzODYxMSwicGF0aCI6Ii84OTIzNDU0NS8yNjE3MDkwOTYtMDM3ZjJjNDUtNTM2Zi00NzJhLTk5NTQtZjU5OGU3MjI4MDRhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE4VDAwMzAxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRkMzdlYThlNGFlMTg4NWZjYzBhOWU5YzU1NjQyOGQ4MjlmNjFiMzM4NmNiODYwZGQxNWIxZjk0NWU4ZmY3NjcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.qa_vu13COuFR56gxVy4Dx4S32atVCSmRwkOpIZQRD4M)
To reproduce
Steps to reproduce the behavior:
Expected behavior
There should be no compile errors and the Inspector window should show all components for the Theme Provider.
![image](https://private-user-images.githubusercontent.com/89234545/261709096-037f2c45-536f-472a-9954-f598e722804a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk4Mzg5MTEsIm5iZiI6MTczOTgzODYxMSwicGF0aCI6Ii84OTIzNDU0NS8yNjE3MDkwOTYtMDM3ZjJjNDUtNTM2Zi00NzJhLTk5NTQtZjU5OGU3MjI4MDRhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE4VDAwMzAxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRkMzdlYThlNGFlMTg4NWZjYzBhOWU5YzU1NjQyOGQ4MjlmNjFiMzM4NmNiODYwZGQxNWIxZjk0NWU4ZmY3NjcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.qa_vu13COuFR56gxVy4Dx4S32atVCSmRwkOpIZQRD4M)
My setup
Target platform
Additional context
Removing the file will fix the compilation error as well as the Inspector window error. The only use for this file is to add the warning message above these components and isn't necessary for the correct operation of the editor.
The text was updated successfully, but these errors were encountered: