Class ProjectManager
Inheritance
ProjectManager
Syntax
public class ProjectManager : MonoBehaviour, IProgressTask
Fields
onAuthenticationFailure
Declaration
public UnityEvent onAuthenticationFailure
Field Value
Type |
Description |
UnityEvent |
|
Properties
Projects
Declaration
public IEnumerable<Project> Projects { get; }
Property Value
Methods
Cancel()
Declaration
Implements
IProgressTask.Cancel()
DeleteProjectLocally(Project)
Declaration
public IEnumerator DeleteProjectLocally(Project project)
Parameters
Type |
Name |
Description |
Project |
project |
|
Returns
DownloadProjectLocally(String, Boolean)
Declaration
public IEnumerator DownloadProjectLocally(string serverProjectId, bool incremental)
Parameters
Returns
DownloadSourceProjectLocally(Project, String, SyncManifest, SyncManifest, IPlayerClient, Action<Single>)
Declaration
public IEnumerator DownloadSourceProjectLocally(Project project, string sessionId, SyncManifest oldManifest, SyncManifest newManifest, IPlayerClient client, Action<float> onProgress)
Parameters
Type |
Name |
Description |
Project |
project |
|
String |
sessionId |
|
SyncManifest |
oldManifest |
|
SyncManifest |
newManifest |
|
IPlayerClient |
client |
|
Action<Single> |
onProgress |
|
Returns
GetSourceProjectFolder(Project, String)
Declaration
public string GetSourceProjectFolder(Project project, string sessionId)
Parameters
Returns
IsProjectAvailableOffline(Project)
Declaration
public bool IsProjectAvailableOffline(Project project)
Parameters
Type |
Name |
Description |
Project |
project |
|
Returns
IsProjectAvailableOnline(Project)
Declaration
public bool IsProjectAvailableOnline(Project project)
Parameters
Type |
Name |
Description |
Project |
project |
|
Returns
IsProjectVisibleToUser(Project)
Declaration
public bool IsProjectVisibleToUser(Project project)
Parameters
Type |
Name |
Description |
Project |
project |
|
Returns
LoadProjectManifests(Project)
Declaration
public IEnumerable<SourceProject> LoadProjectManifests(Project project)
Parameters
Type |
Name |
Description |
Project |
project |
|
Returns
RegisterToProject(String, Action<Project>)
Declaration
public void RegisterToProject(string serverProjectId, Action<Project> callback)
Parameters
SetUnityUser(UnityUser)
Declaration
public void SetUnityUser(UnityUser unityUser = null)
Parameters
Type |
Name |
Description |
UnityUser |
unityUser |
|
StartDiscovery()
Declaration
public void StartDiscovery()
StopDiscovery()
Declaration
public void StopDiscovery()
Events
onProjectAdded
Declaration
public event Action<Project> onProjectAdded
Event Type
onProjectChanged
Declaration
public event Action<Project> onProjectChanged
Event Type
progressChanged
Declaration
public event Action<float, string> progressChanged
Event Type
Implements
IProgressTask.progressChanged
taskCompleted
Declaration
public event Action taskCompleted
Event Type
Implements
IProgressTask.taskCompleted
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.