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