Search Issue Tracker

Not Reproducible

Votes

5

Found in

2018.4

2019.4.6f1

2020.1

Issue ID

1269626

Regression

Yes

[3D Game Kit] "PrefabStage does not contain definition for assetPath" error message is thrown when 3D Game Kit is imported

Package

-

How to reproduce:
1. Create a new 3D project
2. Go to the Asset store in a browser (Make sure you are logged in)
3. Search "3D Game Kit" and import it into Unity
4. Press "Install/Upgrade" when the warning window pops up in the Editor
5. After the package is imported observe the Console log

Expected result: No errors are thrown in the Console log
Actual result: "Error CS1061: 'PrefabStage' does not contain a definition for 'assetPath'" error message is thrown in the Console log

Reproducible with: 1.9.2 (2018.4.26f1, 2019.4.8f1, 2020.1.0a4)
Not reproducible with: 1.9.2 (2020.1.0a5, 2020.1.2f1, 2020.2.0a20)

Notes:
- Multiple errors are thrown in 2018.4.26f1 and other Unity versions since a lot of packages don't exist in that version (2D Sprite, 2D Tilemap, Visual Studio Editor, Visual Studio Code Editor, JetBrains Rider Editor)
- In some Unity versions, packages need to be downgraded to remove the errors in the Console log, in 2018.4.26f1 errors are thrown because of TexhMeshPro 3.0.0-preview.14 and Timeline 1.2.12 packages and in 2019.4.8f1 because of TexhMeshPro 3.0.0-preview.14 package
- The Actual result error message might only appear after clearing the errors with the packages

Comments (4)

  1. soulloader

    Sep 22, 2021 22:50

    Checking the error log, opening visual studio, in the lines where AssetPath is underlined, just follow the suggested correction changing AssetPath to prefabAssetPath.

  2. MagendanzC

    Dec 04, 2020 08:59

    I've got two classrooms of students in a "zero-code" intro course on Unity that have just run into this blocking issue with 3D Game Kit. These kids don't even have an IDE installed, and so the workaround provided has to be done with NotePad...which is a little overwhelming for kids who have never coded before.

  3. wasalua

    Sep 05, 2020 00:31

    I was able to resolve this by changing x.assetPath to x.prefabAssetPath

  4. orsoleads

    Aug 15, 2020 12:55

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.