Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This question was closed Jun 24, 2019 at 10:18 PM by PixelGuru for the following reason:

The question is answered, right answer was accepted

avatar image
0
Question by PixelGuru · Jun 24, 2019 at 10:08 PM · template

Can't change script template in Unity 2019.1 (Unity Hub install)

Hello Unity Answers,

So for many many versions of Unity now, I've been able to change my default C# script template very easily. I navigate to this location on my PC:

 C:\Program Files\Unity\Editor\Data\Resources\ScriptTemplates

and change the following file:

 81-C# Script-NewBehaviourScript.cs.txt

Once I do that I restart Unity and when I go to create a new C# script, it will use my edited template instead of the default one. I upgraded to Unity 2019.1 and now it's not doing that for some reason and I don't know why. A new C# script is generated using the Unity default template but I have no idea where it's pulling that from. I even went so far as to remove EVERY script template from the ScriptTemplates folder, rebooted Unity, then tried to create a new C# script. Not only did it work but it used the default script template still. That means there has to be another location that Unity is reading from but I can't find record of it. Unity's official documentation still says to do it the exact way I've been doing it.

Does anyone have an idea of where I need to go to change my template?

Thanks! -Kaze-

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

  • Sort: 
avatar image
0
Best Answer

Answer by PixelGuru · Jun 24, 2019 at 10:18 PM

I found the problem. When you install Unity via the Hub, for some asinine reason, it creates a SECOND resources folder within the Hub installation. Buried in there is a resources folder for the version of Unity you have installed and within that is the ScriptTemplates folder that you need to change...why Unity...why would you design it that way?

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Romano · May 15, 2020 at 11:13 AM 0
Share

Does anyone know where exactly this ScriptTemplates folder is? I can't seem to find it. Using Unity 2019.3.11

avatar image PixelGuru Romano · May 15, 2020 at 09:48 PM 0
Share

Hey,

Bit of a dead thread but I did get a notification of your question apparently lol. So I was able to find my templates on my PC here:

C:\Program Files\Unity\Hub\Editor\2019.3.12f1\Editor\Data\Resources\ScriptTemplates

If you have a PC you should find it there too. If you have a $$anonymous$$ac I'm not sure where it is. It does of course require a version of Unity to be installed via the Hub, it can't be just empty. Also note that every time you download a new version, you'll need to replace your template again...kind of annoying but it's fine.

Follow this Question

Answers Answers and Comments

107 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Whers should i use this code template? 1 Answer

Can I sell my own assets outside the Asset Store too? 1 Answer

Change the default script template? 5 Answers

Dropdown menu selection 0 Answers

How to resolve Unity HDRP will not work until error is fixed problem 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges