Skip to content
SiteEmail

cohtml.Editor.EditorUtils

Name
stringStringifyPlatform(BuildTarget platform)
stringStringifyBackend(GraphicsDeviceType backend)
stringGetAppExtension(BuildTarget platform)
stringFindBrowserExecutablePath()
voidCopyFolder(string sourceFolder, string destinationFolder, params string [] fileExtensionsForExclude)
voidDeleteFolderRecursively(string directory, bool removeDirectoryMetaFile =true)
Name
const stringAssetsDir
The project’s root directory.
const stringSamplesDir
The default sample directory where the UPM Samples are imported.
const stringUPMSamplesDir
The Cohtml package sample folder.
const stringStreamingAssetsDir
The Streaming Assets directory. The folder is inside the Assets folder.
const stringCohtmlDir
The Cohtml directory name. It’s part of sample’s resources, assets or package directories.
const stringUIResourcesDir
The directory where the front-end lies.
const stringSampleHubDir
The Sample Hub directory.
const stringHelloSampleDir
The Hello template directory.
const stringFrontendSamplesDir
The directory where the front end uiresources folder will import.
const stringSceneExtension
The scene extension
readonly stringExcludeMetaFiles
Represent a collection with exclude to copy files.
static string StringifyPlatform(
BuildTarget platform
)
static string StringifyBackend(
GraphicsDeviceType backend
)
static string GetAppExtension(
BuildTarget platform
)
static string FindBrowserExecutablePath()
static void CopyFolder(
string sourceFolder,
string destinationFolder,
params string [] fileExtensionsForExclude
)
static void DeleteFolderRecursively(
string directory,
bool removeDirectoryMetaFile =true
)
const string AssetsDir = "Assets";

The project’s root directory.

const string SamplesDir = "Samples";

The default sample directory where the UPM Samples are imported.

const string UPMSamplesDir = SamplesDir + "~";

The Cohtml package sample folder.

const string StreamingAssetsDir = "StreamingAssets";

The Streaming Assets directory. The folder is inside the Assets folder.

const string CohtmlDir = "Cohtml";

The Cohtml directory name. It’s part of sample’s resources, assets or package directories.

const string UIResourcesDir = "UIResources";

The directory where the front-end lies.

const string SampleHubDir = "SampleHub";

The Sample Hub directory.

const string HelloSampleDir = "Hello";

The Hello template directory.

const string FrontendSamplesDir = "FrontendSamples";

The directory where the front end uiresources folder will import.

const string SceneExtension = ".unity";

The scene extension

static readonly string ExcludeMetaFiles = ".meta";

Represent a collection with exclude to copy files.