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 djindepth12 · Oct 22, 2014 at 05:58 AM · version-controlperforce

Perforce Version Control

I have been using Perforce for version control for a couple of years now without difficulty. However, recently I have run into a problem where my project's game objects will lose their components when getting the latest build on a different workspace. Items affected are textures, scripts, and audio files assigned in the inspector. The files are present in the project, but will need to be reassigned along with any inspector variables. Prefabs in the hierarchy will appear red and will need to be replaced.

I am using Unity 4.5.4 The Version Control is set to Perforce and the Asset Serialization is set to text. I have tried Mixed and Binary also. An error that appears at times but not every time indicates a problem with the meta files. For example: Assets/Scenes/Connection.unity.meta - file(s) not on client.

I am in contact with Perforce and they don't understand how Unity interacts with Perforce. Please advise.

alt text

alt text

unity_perforce_issue_1.jpg (229.4 kB)
unity_perforce_issue_2.jpg (134.3 kB)
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 djindepth12 · Oct 22, 2014 at 05:53 PM 0
Share

I found this: Anyone who has been using Unity for very long has encountered the dreaded “Referenced script on this Behaviour is missing” problem, which typically occurs either when you have a Component on one of your objects whose script has been deleted or you have moved a scene from one project to another and even though they both have the appropriate scripts, the serialized reference to the script is no longer valid.

Which leads me to believe that the meta file is being edited or corrupted under version control. Anyone else having this issue?

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by triff · Oct 22, 2014 at 06:50 AM

Eyup,

Set the Version Control Mode to Visible Meta Files instead of Perforce (bear with me...) and Asset Serialisation to Force Text, that should do it.

The other things to remember are to not check in the Library or Temp folders as these should only exist locally. Then, anything you do (move/delete/check in/out) to a file, you also do to the metafile.

I had issues a few months back with P4EXP (installed by default with P4) and Unity, so had to manually prune that from my system - if you do the above and things are still wonky, maybe give that a shot.

Good luck!

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 djindepth12 · Oct 22, 2014 at 11:43 AM 0
Share

Eyrup,

Thank you for your response. I will try as you suggested, but I would like to hear from others theories why this might be happening with the upgrade to 4.5.4 from 4.3.2..

avatar image djindepth12 · Oct 22, 2014 at 11:46 AM 0
Share

Eyrup,

I've tested your suggestion. It doesn't allow me to input my server or credentials. This does not seem like an option for me at this time.

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

29 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

Related Questions

Version control tab not showing incoming changes 1 Answer

How do I change Version Control settings once Mode is greyed out 0 Answers

Perforce not selectable in Unity Pro 4 1 Answer

Prefab missing with perforce? 0 Answers

Edit->Project Settings->Editor Perforce Greyed Out 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