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
0
Question by darbotron · Mar 25, 2012 at 12:09 AM · projectperforce

I want to put my Unity project into a perforce server, how do I "clean" a unity project?

Hi

I would like to know how I might go about cleaning a Unity project to remove all the local generated files, and just leave the files that are necessary to re-generate the project (like when you "clean" a C++ project in visual studio).

Is there a definitive "what is temporary & what isn't" document anywhere, I've trawled all over the place and found nothing useful...

Cheers,

darbotron

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

4 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by nschrag · Mar 26, 2012 at 05:25 AM

If you are running Unity 3.5 or later, it's fairly simple. Under Edit > Project Settings > Editor, be sure Version Control Mode is set to Meta Files (available even in the free version starting with 3.5). Unity will then generate a .meta file for every file and folder in the Assets directory.

Everything in the Assets and ProjectSettings directories needs to be checked in, and you will be good to go. The Library directory will be recreated locally when someone else gets the project or updates to the project.

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
2

Answer by Chad · Mar 26, 2012 at 05:44 AM

The Unity 3.5 docs have a good description of the process for subversion.

Using External Version Control Systems with Unity

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 abel_bordonado · Sep 04, 2015 at 10:32 AM 0
Share

Page not found :(

avatar image
0

Answer by darbotron · Mar 26, 2012 at 02:48 PM

d'oh! totally missed that page.

Thanks

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 zaino · Feb 02, 2013 at 09:47 PM

Hi guys, I want to put my project in P4 as well. I read the doc, but I have a couple of questions:

  1. Steps 5, 6 and 9 seem redundant to me with P4. Can't I just delete Library (step 4) and then submit Assets and ProjectSettings as step 5? Step 7 will recreate Library, but it's a local folder, why would I need to re-commit after? I really don't get it.

  2. Whenever I need to make modifications to a file, do I need to check out also the metafile associated with it?

Thanks!

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 darbotron · Sep 07, 2015 at 09:18 AM 0
Share

The easiest way to work with P4 (assu$$anonymous$$g that you have set P4 to ignore the temporary folders) is to just do "reconcile offline work" on the project folder.

The meta files associated with each asset / folder don't necessarily change, but you should generally check them out just to be on the safe side if you're insisting on doing it manually - you can always set the workspace to "revert unchanged" on submit.

I've since switched to using git / mercurial for my projects & though I've been using P4 for a decade I've found that the workflow is way easier with mercurial - at least with small $$anonymous$$ms...

$$anonymous$$inor thing - P4 is definitely better for art heavy projects, git / mercurial don't scale particularly well with binary data. In fact I know several companies that use git for code & perforce for art assets for this reason.

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

6 People are following this question.

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

Related Questions

Unity project referencing another Unity project? 0 Answers

How can I download my projecst from Unity website? 1 Answer

How to share assets between projects with Unity Collaborate 1 Answer

Upgraded to unity 2018.1.0f2 and VS Project is no longer generated 5 Answers

name of project 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