Search Issue Tracker

Active

Votes

0

Found in

6000.0.37f1

6000.1.0b5

6000.2.0a3

Issue ID

UUM-97129

Regression

No

Console displays "ArgumentNullException: Value cannot be null. Parameter name: path1" during the scene template creation

-

*Steps to reproduce:*
# Create a project
# Go to File -> New Scene
# Select:
** "Basic (URP)"
** or "Lit 2D (URP)"
** or "Standard (URP)"
# Click "Create"
# Go to File -> Save As Scene Template
# Enter a name instead of "newscene.unity" and click "Save"
# Observe the Console

*Actual results:* The console displays an error. A short video is added below in the "Attachments" section.

Error:

ArgumentNullException: Value cannot be null.
Parameter name: path1
System.IO.Path.Combine (System.String path1, System.String path2) (at <107b8456f94146d4b9e1cbdadc91cb21>:0)
UnityEditor.SceneTemplate.SceneTemplateUtils.SaveFilePanelUniqueName (System.String title, System.String directory, System.String filename, System.String extension, System.Boolean showSaveFilePanel) (at /Users/bokken/build/output/unity/unity/Modules/SceneTemplateEditor/SceneTemplateUtils.cs:146)
UnityEditor.SceneTemplate.SceneTemplateService.SaveTemplateFromCurrentScene () (at /Users/bokken/build/output/unity/unity/Modules/SceneTemplateEditor/SceneTemplateService.cs:621)

*Expected results:* No errors

*Reproducible with versions:* 6000.0.37f1, 6000.1.0b5, 6000.2.0a3

*Not reproducible with versions:* -

*Can’t test with versions:* 2022.3.56f1

*Tested on (OS):* Apple M1 Max - Sequoia 15.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.