Search Issue Tracker

Won't Fix

Won't Fix in 2020.3.X

Votes

0

Found in

2020.1.0a13

Issue ID

UUM-12606

Regression

Yes

Creating a GameObject using 'new' returns null when calling it from Reset() method

--

-

How to reproduce:
1. Open the "SampleScene" in the attached "case_1196137_repro" project
2. Add the "TestScript" as a Component to the "TestGameObject"

Expected results: "TestGameObject" has a "child" object attached to it
Actual results: "child" is created as a separate GameObject, NullReferenceExceptions are thrown in the console

Reproducible with: 2019.2.0b10, 2019.2.13f1, 2019.3.0b11, 2020.1.0a13
Not reproducible with: 2017.4.34f1, 2018.4.13f1, 2019.2.0b9

Additional note: The issue does not reproduce if the Reset() is called via a cog button next to a Component in the Inspector Window.

  1. Resolution Note:

    There are no fixes planned for this Bug

  2. Resolution Note (2020.3.X):

    Does not reproduce in latest 2020.3

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.