Search Issue Tracker
Not Reproducible
Fixed in 2.3.0
Not Reproducible in 2.1.X
Votes
0
Found in [Package]
2.0.0
2.1.0
2.1.1
Issue ID
XRCLB-126
Regression
No
Warning When Building Mixed Reality Template: MonoBehaviour Instantiated with new Keyword
Steps to reproduce:
- Open Unity Hub
- Create a new project using the Mixed Reality Template
- Build the project
- Observe the console after the build completes
Actual results: The warning appears:
{code:java}
"You are trying to create a MonoBehaviour using the 'new' keyword. This is not allowed. MonoBehaviours can only be added using AddComponent(). Alternatively, your script can inherit from ScriptableObject or no base class at all"
{code}
Expected results: No warnings should occur after building the template
Reproducible with versions: 2.1.2 (6000.2.0b7), 2.1.1 (6000.2.8f1)
Not reproducible with versions: 6000.0.51f1, 6000.1.8f1
Tested on (OS): macOS 15.3 (Intel)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Resolution Note:
Please upgrade to version 2.2.0 of the Composition Layers package when it becomes publicly available to alleviate this issue.
Resolution Note (2.1.X):
Please upgrade to version 2.2.0 of the Composition Layers package when it becomes publicly available to alleviate this issue.