Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Perforce and the Provider class

Discussion in 'Editor & General Support' started by mattimus, Nov 6, 2013.

  1. mattimus

    mattimus

    Joined:
    Mar 8, 2008
    Posts:
    576
    I'm trying to perform some Perforce operations from within editor scripts. I can check out and revert files, but I can't get any changelist operations to work. I have several changelists I've created outside of Unity, but I can't access them through the Provider class. Any use of Provider.ChangeSets().changeSets always returns an empty list.

    Has anyone been successful in manipulating changelists through editor code? Some things I'd like to be able to do:

    • Create an empty changelist, give it a description.
    • Check out an item into a specified changelist
    • Query the contents of a changelist
    • Revert unchanged files in a changelist