Api Editor ProjectPublisher
class

ProjectPublisher

public class ProjectPublisher

Properties

Name Type Description
TargetPackageIdent String
Manifest PackageManifest
TotalFileCount Int32
MissingFileCount Int32
MissingFileSize Int64
OnProgressChanged Action
Files IEnumerable<ProjectFile> Get access to the files within the manifest

Methods

Void SetMeta(String key, Object obj)
static Task<ProjectPublisher> FromAsset(Asset asset)
static Task<ProjectPublisher> FromProject(Project project)
List<GameSetting> GetGameSettings(CompilerOutput[] assemblies)

Fetch a list of game settings to be added to the project's metadata

assemblies
Task Publish(IProgress progress = null, CancellationToken cancel = null)

Publish a new revision

Task PrePublish(CancellationToken cancellationToken = null)

Check the intended manifest, ask the backend which files need to be uploaded.

Task UploadFiles()
Task AddFile(Byte[] contents, String relativePath)

Manually add a file to the manifest

Task AddFile(String contents, String relativePath)

Manually add a file to the manifest

Task AddCodePackageReference(String package)

If the code is referencing a package - we can add it to the manifest using this.

Void SetChangeDetails(String change, String detail)

Allows to set information on the revision - for future reference

static Boolean CanPublishFile(Asset a)

Return true if we're not opposed to publishing this asset

Assembly: Sandbox.Tools Namespace: Editor Full Name: Editor.ProjectPublisher