Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
12
Question by Fattie · Jul 23, 2012 at 10:12 AM · editorcompilation

Isn't there a "do not compile" folder?

I'm sure there's a Special folder name,

that simply tells Unity to ignore it, ie, you can sit scripts in there for convenience that are simply not compiled, ignored by Unity.

Does someone remember the name of this special folder?

thanks!

PS it's so silly they don't have a page in the doco: "absolute list of special folder names."

Comment
Add comment · Show 1
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 flamy · Jul 23, 2012 at 10:33 AM 0
Share

it is a really good question. hope someone finds a work around

6 Replies

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

Answer by andresp · Nov 19, 2012 at 02:15 PM

Start the folder name with a dot ".".

Unity ignores folders (and files) starting with "." (e.g. .svn, .git...).

Comment
Add comment · Show 4 · 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 benhumphreys · Mar 03, 2014 at 07:17 AM 0
Share

Interestingly it seems that while this is true for the editor, any files or folders with a "." are still included in builds that are made. At least if they're within the Resources or Strea$$anonymous$$gAssets folders.

avatar image Linus · Mar 03, 2014 at 07:32 AM 3
Share

But thats whats Resources folder is for, include at all times.

avatar image jpthek9 · May 02, 2015 at 10:36 PM 0
Share

AWESO$$anonymous$$E! Thanks for this info. I would've never thought of this.

avatar image Happy-Zomby · Sep 02, 2015 at 04:34 PM 0
Share

FYI - the "." solution doesn't seem to work for me - I get the below message: "Invalid file name: '.Scripts' UnityEditor.DockArea:OnGUI()" maybe linked to latest unity version. The "WebPlayerTemplates" mentioned below solution worked for me. thanks,

avatar image
4

Answer by Bunny83 · Jul 23, 2012 at 10:43 AM

There's no dedicated folder for this purpose. We wanted such a folder for a long time.

You should be able to use a "WebPlayerTemplates" folder since this is usually ignored by the compiler since the webtemplates could contain .js files (web-javascript files) which shouldn't be compiled in Unity.

See UsingWebPlayertemplates

Comment
Add comment · Show 4 · 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 Fattie · Jul 28, 2012 at 09:03 AM 1
Share

tragically -- this does not work for me!

interestingly it will seem to ignore deliberate syntax errors but it seems to still scan the files to check for the existence of classes, so, it throws errors on 'em all. Suck ! nevertheless thanks!

avatar image Bunny83 · Jul 28, 2012 at 09:19 AM 0
Share

Well, that's strange. According to the script compilation order page files in this folder will not be compiled at all.

I never used it myself, but maybe the folder behaves like the plugins folder, so it only works when it's directly in the assets folder.

avatar image Fattie · Jul 28, 2012 at 09:39 AM 0
Share

right, I did have it directly in the assets folder.

this is U/S. (did not try c#) as I say oddly it seems to check that any classes mentioned exist, but it does not seem to actually check the syntax of code. (so in some circumstances it would appear to "work")

avatar image Novack · Jun 13, 2014 at 09:14 PM 0
Share

Confir$$anonymous$$g the same happens with c#. Build errors are thrown ignoring the WebPlayerTemplates trick.

avatar image
2

Answer by lrb · May 06, 2020 at 04:00 PM

For me better solution was to add a "~" to the end of the folder name like on the docs: https://docs.unity3d.com/Manual/SpecialFolders.html

So it'll:

  1. not compiling on Editor

  2. not included on Builds

  3. not be visible inside Unity Editor project tab

  4. not be hidden on Windows or Linux

  5. have as many folders as you want, starting with the alphabetical order you want

But if I need that folder to be under Unity's built-in version control, I need to put inside:

WebPlayerTemplates

It'll continue to work with the 5 points mentioned before, except that will be visible on editor project tab, at least on Unity 2019.3.x

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
1

Answer by Gru · Aug 28, 2016 at 04:27 PM

WebPlayerTemplates trick does not work any more since web player is discontinued. Instead, scripts placed in StreamingAssets folder are not compiled, but it seems they will be included in the build as text assets if you leave them there.

Comment
Add comment · Show 1 · 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 perttikontio · Nov 07, 2018 at 06:07 AM 0
Share

Whenever you edit the js in Strea$$anonymous$$gAssets, the Unity compiler notices that and tries to compile modified files. So you need to shutdown editor if you want to edit those javascripts :)

avatar image
-1

Answer by sarasimo · Aug 29, 2016 at 04:54 AM

Yes, Editor

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
  • 1
  • 2
  • ›

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

16 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

Related Questions

Measuring script recompilation times 1 Answer

Check if public field set in editor at compilation 2 Answers

Assigning class instance to a Gameobject 0 Answers

Compiling Scripts Popup Appears Every Time You Switch to Unity 0 Answers

How can I get more information about this error: "The classes in the module cannot be loaded"? 1 Answer


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