Skip to content

replace script templates for unity installations #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
unitycoder opened this issue Nov 10, 2020 · 2 comments
Closed

replace script templates for unity installations #20

unitycoder opened this issue Nov 10, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@unitycoder
Copy link
Owner

each unity installation comes with default script templates,
https://support.unity.com/hc/en-us/articles/210223733-How-to-customize-Unity-script-templates

would be nice to have option to replace those templates with your own (from defined input folder).
personally i'd add there Editor script template, maybe some shader templates too.. and remove those comments from default scripts.

should be easy to do:

  • settings tab: add checkbox [ ] replace templates, add textbox for input template folder (this could support url later?)
  • when unity editors are scanned, it checks if need to replace templates and copies (how to detect version/already copied)
  • no option to revert changes though.. unless take backups.. ask user to take backups in tooltip..
@unitycoder unitycoder added the enhancement New feature or request label Nov 10, 2020
@unitycoder
Copy link
Owner Author

another way (doesn't require admin access and doesnt touch unity installation files, but adds extra folder to project..)
"Create [ScriptTemplates] folder with template files you want and just copy it to [Assets] folder in your new projects"
https://forum.unity.com/threads/share-your-unity-hub-3-0-beta-feedback-here.1130638/page-5#post-7393637

@unitycoder
Copy link
Owner Author

current workaround:
copying those files is possible by making custom init script:
#50 (comment)

and could make init script to have extra options, inside unity,
unitycoder/UnityInitializeProject#2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant