Unity Issue Tracker - ROOTNAMESPACEBEGIN variable is parsed to the new script when placed on the first line of the template
Fixed
UUM-32235
ROOTNAMESPACEBEGIN variable is parsed to the new script when placed on the first line of the template
Unity: Scripting
Fixed
2023.2.X
2023.1.X
2021.3.X
Won't Fix
2023.3.X
2022.2.X
2020.3.X
Fixed the logic used to replace the #ROOTNAMESPACEBEGIN# token
Fixed an issue with custom script templates containing #ROOTNAMESPACEBEGIN# on their first line
Fixed the logic used to replace the #ROOTNAMESPACEBEGIN# token
Reproduction steps:
1. Open the attached project “ScriptTemplateBug“
2. Open the Assets folder
3. In the Project window press RMB>Create>C# BrokenClass
Expected result: Script is created with an empty class
Actual result: Template variable “#ROOTNAMESPACEBEGIN#” is parsed before an empty class