Search Issue Tracker

Fixed

Fixed in 5.0.0

Votes

0

Found in [Package]

4.1.3

Issue ID

TUT-46

Regression

Yes

"Unity.Tutorials.Core.Editor.BuildStartedCriterion must be instantiated using the ScriptableObject.CreateInstance method instead of new BuildStartedCriterion" warning is thrown after building a project

Package: Tutorial Framework

-

Steps to reproduce:
1.  Create a new project with High Definition 3D Sample template
2. Build And Run
3. Observe the Console

Actual results: "Unity.Tutorials.Core.Editor.BuildStartedCriterion must be instantiated using the ScriptableObject.CreateInstance method instead of new BuildStartedCriterion.
UnityEngine.ScriptableObject:.ctor ()
Unity.Tutorials.Core.Editor.Criterion:.ctor () (at ./Library/PackageCache/com.unity.learn.iet-framework/Editor/Criteria/Criterion.cs:43)
Unity.Tutorials.Core.Editor.PreprocessBuildCriterion:.ctor ()
Unity.Tutorials.Core.Editor.BuildStartedCriterion:.ctor ()
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)" warning is thrown
Expected results: No errors or warnings are thrown

Reproducible with versions: 2022.3.64f1, 6000.0.26f1, 6000.1.11f1, 6000.2.0b8
Not reproducible with versions: 2021.3.45f1, 6000.0.25f1

Tested on (OS): macOS Sequoia 15 (Intel), macOS Sonoma 14.7 (M1), Windows 11, Ubuntu 22.04

Notes:
- Also reproducible with FPS Microgame, Universal 3D Sample, Mixed Reality, AR Mobile and 2D Platformer Microgame, Essentials Pathway, Getting Started With Unity templates
- Issue is no longer reproducible on 5.0.0 Tutorial Framework version but oldest possible package version which reproduces the issue gets installed by default when creating a project 

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.