Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
avatar image
1
Question by Thaina · Aug 24, 2015 at 11:58 AM · editor-scriptingassetfolder

Are there a folder for global script?

Sometimes I want to make a script that would be shared to every project I created (helper class or extend editor) I want to make it copying every times I create project or just sharing as global asset or something

Did unity has something like that?

Comment
Add comment · Show 8
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 fafase · Aug 25, 2015 at 09:02 AM 0
Share

You have some assembly files at the root of your project. Those are copied from the Unity folder, the main one. Change those to perform extra actions. They are xml.

Your idea of C# script is not valid, you would have to create that script for each new creation, which is pretty much the same as downloading manually.

avatar image Hellium · Aug 25, 2015 at 09:09 AM 0
Share

@Thaina : Inefficient approval system ? Look at this : http://forum.unity3d.com/threads/unity-answers-troll-questions.349253/

And if you are not pleased by this system, move your a#$ and help others, you won't need to be approved anymore. And if you reach 1000 karma point, you will be able to help moderators who are not part of the Unity $$anonymous$$m (and not paid), just generous persons using their free time to help people like you.

avatar image Thaina · Aug 25, 2015 at 09:43 AM 0
Share

@Hellium That's why I talk about system not person. You can understand difference between these words right? $$anonymous$$oderator need to spend their time to look and approve each post ins$$anonymous$$d of doing other thing is inefficient system. And trolling post can just got reported and banned. That's far more efficient

I also already try to help people then my answer got delayed for approval too. And it seem too late tobe helpful. So I just stop because I got annoyed with inefficiency. So you should stop your mouth too if you don't want to help

@fafase What is that xml file? And where does it copied from? Which directory was that "unity folder" you mentioned contain in windows?

avatar image fafase · Aug 25, 2015 at 10:04 AM 0
Share

Create a new project, then at the root level you have Assets folder and a bunch of csproj files. Those are setting the project and running actions based on setting.

You can open them in any text editor. I would not recommend to modify them without knowing exactly what to do.

I would think those file are copied from a template somewhere in the Unity folder but I can't say where they are stored..

avatar image Thaina · Aug 25, 2015 at 10:35 AM 0
Share

@fafase That's still just project scope, not a global automatic scope. I don't want to do it everytime I create project. I want something that will automatically import whenever I create new project in my computer

Show more comments

3 Replies

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by SarperS · Aug 25, 2015 at 10:14 AM

You can make it into a unitypackage and put it under "..\Unity\Editor\Standard Assets" and then select/import it everytime you create a project from the "Asset Packages" option from the Unity launcher.

Comment
Add comment · Show 7 · 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 fafase · Aug 25, 2015 at 10:36 AM 0
Share

OP wants an automatisation of that process. I originally suggested that in an answer I removed because what he is after is no longer Unity specific but more about software architecture.

avatar image Thaina · Aug 25, 2015 at 10:38 AM 0
Share

That folder is in ProgramFiles/Unity in windows right?

Also can we add that package and modify something to set checkbox true as default?

avatar image Scribe · Aug 25, 2015 at 10:41 AM 0
Share

You could use hardlinks on windows and sym links on $$anonymous$$ac to mean you only have to change code in one place and avoid having to keep reimporting. Check the answer here.

avatar image SarperS · Aug 25, 2015 at 11:09 AM 0
Share

@Thaina I don't see the motivation here. Do you create projects on a daily or even hourly basis or something? Clicking a couple of check boxes every time you create a project shouldn't be too much work. Ideally you would only create projects a couple times a year and have a testbed project for testing out stuff. Could you please explain why you need this?

avatar image Thaina · Aug 25, 2015 at 12:53 PM 0
Share

@Sarper Soher That question I just ask for convenience, Yes sometimes I delete and create new test project for checking functionality manytimes in one day. And to check that I was import all I need is annoying sometimes

But before that please tell me which place is exact directory of "standard asset" folder

Show more comments
avatar image
1

Answer by Thaina · Aug 25, 2015 at 04:30 PM

Additional from @Sarper Soher I found the information about "module" from google. Thanks for your pinpoint folder name

http://homans.nhlrebel.com/2014/12/09/unity-4-6-and-modules/

Comment
Add comment · 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
0

Answer by fishbrainz · Aug 26, 2015 at 07:38 AM

I would create a unitypackage with some base classes/folder structure, and import those in every new project directly from the wizard. Ofc this package would need to be updated every time you decide you need something more added to it, That would be my choice.

Comment
Add comment · 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

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

How to assign variables like Texture2D, TextAsset, Transform, etc. using code? 1 Answer

Importing .png via script 1 Answer

[Editor scripting] How to save a script generated mesh as an asset/FBX? 4 Answers

Permanently linking import settings presets 0 Answers

Can AssetDatabase.LoadAllAssetsAtPath Load All Assets Recursively? 2 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